Python 3 treats old style exceptions as syntax errors

This commit is contained in:
cclauss 2018-08-19 00:44:49 +02:00 committed by Peter Barker
parent 8e76f0f6d9
commit 650ee3f441

View File

@ -89,7 +89,7 @@ Options:
if len(args) > 2:
raise getopt.GetoptError('Too many arguments')
except getopt.GetoptError, msg:
except getopt.GetoptError as msg:
txt = 'ERROR: '+str(msg) # that's required to get not-so-dumb result from 2to3 tool
print(txt)
print(usage)