fixed error handling for python 2.7+

This commit is contained in:
Rob Weber
2019-08-19 15:23:48 -05:00
parent d0b1d6bb34
commit 4513eb67f9
6 changed files with 18 additions and 36 deletions

View File

@@ -58,7 +58,7 @@ class DropboxAuthorizer:
try:
user_token = flow.finish(code)
self._setToken(user_token.access_token)
except Exception,e:
except Exception as e:
utils.log("Error: %s" % (e,))
result = False