Skip to content

Commit

Permalink
fix bool key check
Browse files Browse the repository at this point in the history
  • Loading branch information
scottstanie committed Oct 3, 2024
1 parent 08b84c7 commit 3ea416c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eof/_asf_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def list_public_bucket(bucket_name: str, prefix: str = "") -> list[str]:
"{http://s3.amazonaws.com/doc/2006-03-01/}Contents"
):
key = contents.find("{http://s3.amazonaws.com/doc/2006-03-01/}Key")
if key:
if key is not None:
keys.append(key.text or "")
logger.debug(f"Found key: {key}")

Expand Down

0 comments on commit 3ea416c

Please sign in to comment.