Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
baznikin committed Mar 5, 2024
1 parent 1e6cf6c commit 6f28564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ def __init__(self):
print('-> Starting backup; include attachments: {}'.format(os.environ['INCLUDE_ATTACHMENTS']))

s3config = {}
if os.environ['S3_REGION']:
if 'S3_REGION' in os.environ:
s3config["region_name"] = os.environ['S3_REGION']
if os.environ['S3_ENDPOINT']:
if 'S3_ENDPOINT' in os.environ:
s3config["endpoint_url"] = os.environ['S3_ENDPOINT']

self.session = requests.Session()
Expand Down

0 comments on commit 6f28564

Please sign in to comment.