diff --git a/s3-bucket-list b/s3-bucket-list index cd535e3..7898dd3 100755 --- a/s3-bucket-list +++ b/s3-bucket-list @@ -69,7 +69,7 @@ while True: break attempt += 1 continue - if not body.startswith(b'\n'): + if not body.startswith(b'\n') and not body.startswith(b""): raise RuntimeError(f'Invalid body: {body[:200]}...') if b'' in body[:200] and 'marker' in params: