Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
davidu1975 committed Jan 27, 2025
1 parent d25fb66 commit 9155c8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dataservices/core/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def unzip_s3_gzip_file(file_body, max_bytes):

def _get_s3_client_kwargs():
kwargs = {}
if hasattr(settings, 'AWS_ACCESS_KEY_ID_DATA_SERVICES') and hasattr(settings, 'AWS_SECRET_ACCESS_KEY_DATA_SERVICES'):
if hasattr(settings, 'AWS_ACCESS_KEY_ID_DATA_SERVICES') and hasattr(
settings, 'AWS_SECRET_ACCESS_KEY_DATA_SERVICES'
):
kwargs['aws_access_key_id'] = settings.AWS_ACCESS_KEY_ID_DATA_SERVICES
kwargs['aws_secret_access_key'] = settings.AWS_SECRET_ACCESS_KEY_DATA_SERVICES

Expand Down

0 comments on commit 9155c8a

Please sign in to comment.