mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
Python 3 treats old style exceptions as syntax errors
This commit is contained in:
parent
8e76f0f6d9
commit
650ee3f441
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user