Skip to content

Commit 85fa2f0

Browse files
committed
Use python 3 compatible except syntax.
1 parent f3cdcd2 commit 85fa2f0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/shopify_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,5 +242,5 @@ def _no_config_file_error(cls, filename):
242242

243243
try:
244244
Tasks.run_task(*sys.argv[1:])
245-
except ConfigFileError, e:
245+
except ConfigFileError as e:
246246
print(e)

shopify/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def _open(self, *args, **kwargs):
2121
self.response = None
2222
try:
2323
self.response = super(ShopifyConnection, self)._open(*args, **kwargs)
24-
except pyactiveresource.connection.ConnectionError, err:
24+
except pyactiveresource.connection.ConnectionError as err:
2525
self.response = err.response
2626
raise
2727
return self.response

0 commit comments

Comments
 (0)