Skip to content

Commit

Permalink
chore: formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
frolvanya committed Apr 25, 2024
1 parent 8ab1841 commit 1112826
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/near_lake_framework/s3_fetchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ async def fetch_shard_or_retry(

return near_primitives.IndexerShard.from_json(body)
except ClientError as e:
if e.response['Error']['Code'] == 'NoSuchKey':
logging.warning("Failed to fetch shard {} - does not exist".format(shard_key))
if e.response["Error"]["Code"] == "NoSuchKey":
logging.warning(
"Failed to fetch shard {} - does not exist".format(shard_key)
)
else:
traceback.print_exc()
except Exception:
Expand Down

0 comments on commit 1112826

Please sign in to comment.