diff --git a/src/near_lake_framework/s3_fetchers.py b/src/near_lake_framework/s3_fetchers.py index 75a07c0..a23a6be 100644 --- a/src/near_lake_framework/s3_fetchers.py +++ b/src/near_lake_framework/s3_fetchers.py @@ -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: