Skip to content
Snippets Groups Projects
Commit 1a1b5a24 authored by Nicolas Buzy-Debat's avatar Nicolas Buzy-Debat
Browse files

aws_push.py: make the exception handling code compatible with Python3

parent 3d17b7fe
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,6 @@ s3_client = boto3.client('s3') ...@@ -8,6 +8,6 @@ s3_client = boto3.client('s3')
try: try:
response = s3_client.upload_file("/" + filename, os.getenv('bucket'), response = s3_client.upload_file("/" + filename, os.getenv('bucket'),
filename) filename)
except Exception, e: except Exception as e:
print('Error uploading to s3') print('Error uploading to s3')
print(e) print(e)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment