Skip to content

Commit fda1da9

Browse files
committed
Fix exception syntax
1 parent 0659c17 commit fda1da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stm32loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def usage():
383383

384384
try:
385385
opts, args = getopt.getopt(sys.argv[1:], "hqVewvrp:b:a:l:g:")
386-
except getopt.GetoptError, err:
386+
except getopt.GetoptError as err:
387387
# print help information and exit:
388388
print (str(err)) # will print something like "option -a not recognized"
389389
usage()

0 commit comments

Comments
 (0)