From 1a1b5a24e652e008a2d61b18acc2200aa0f6e859 Mon Sep 17 00:00:00 2001
From: Nicolas Buzy-Debat <10597937+nbuzydeb@users.noreply.github.com>
Date: Tue, 26 Nov 2019 17:54:25 +0800
Subject: [PATCH] aws_push.py: make the exception handling code compatible with
 Python3

---
 aws_push.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aws_push.py b/aws_push.py
index f99a206..17645be 100644
--- a/aws_push.py
+++ b/aws_push.py
@@ -8,6 +8,6 @@ s3_client = boto3.client('s3')
 try:
     response = s3_client.upload_file("/" + filename, os.getenv('bucket'),
                                      filename)
-except Exception, e:
+except Exception as e:
     print('Error uploading to s3')
     print(e)
-- 
GitLab