Python 3: Convert 'except exceptClass, Target' to 'except exceptClass as Target'

This commit is contained in:
labrys 2016-05-31 03:40:30 -04:00 committed by Labrys
commit 4a4087180b
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ class autoProcessMusic(object):
try:
r = requests.get(url, params=params, verify=False, timeout=(30, 120))
except Exception, e:
except Exception as e:
logger.error("Unable to open URL")
return None