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

@ -131,7 +131,7 @@ class autoProcessTV(object):
# won't process the directory because it doesn't exist.
try:
os.makedirs(dirName) # Attempt to create the directory
except OSError, e:
except OSError as e:
# Re-raise the error if it wasn't about the directory not existing
if e.errno != errno.EEXIST:
raise