Skip to content

Commit

Permalink
Linting: remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhorton committed Jan 11, 2022
1 parent 4af26f5 commit efd3494
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/maggma/stores/aws.py
Expand Up @@ -5,7 +5,7 @@

import threading
import warnings
import zlib
import zlib
from concurrent.futures import wait
from concurrent.futures.thread import ThreadPoolExecutor
from hashlib import sha1
Expand Down Expand Up @@ -379,11 +379,11 @@ def write_doc_to_s3(self, doc: Dict, search_keys: List[str]):
to_isoformat_ceil_ms(doc[self.last_updated_field])
)

# Any underscores are encoded as double dashes in metadata, since keys with
# underscores may be result in the corresponding HTTP header being stripped
# Any underscores are encoded as double dashes in metadata, since keys with
# underscores may be result in the corresponding HTTP header being stripped
# by certain server configurations (e.g. default nginx), leading to:
# `botocore.exceptions.ClientError: An error occurred (AccessDenied) when
# calling the PutObject operation: There were headers present in the request
# `botocore.exceptions.ClientError: An error occurred (AccessDenied) when
# calling the PutObject operation: There were headers present in the request
# which were not signed`
# Metadata stored in the MongoDB index (self.index) is stored unchanged.
s3_bucket.put_object(
Expand Down

0 comments on commit efd3494

Please sign in to comment.