Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariana Barzinpour committed Jul 13, 2023
1 parent 7e7ca26 commit 2d7c949
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/cloud/odc/aws/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def unpack(url, rr):
bucket, key = s3_url_parse(url)
try:
rr = s3.head_object(Bucket=bucket, Key=key, **kw)
except (ClientError, BotoCoreError) as e:
except (ClientError, BotoCoreError):
return None

return unpack(url, rr)
Expand Down Expand Up @@ -293,7 +293,6 @@ def generate_requests(urls, s3, **kw):
_range = None

obj = _s3_fetch_object(url, s3=s3, _range=_range, **kw)
logging.info(f"fetched object: {obj}")
yield obj

for rr in generate_requests(urls, self._s3, **kw):
Expand Down

0 comments on commit 2d7c949

Please sign in to comment.