Skip to content

Commit

Permalink
stm32loader.py: replace obsolete exception catch syntax.
Browse files Browse the repository at this point in the history
For Python 3 support.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
  • Loading branch information
Marti Bolivar committed Aug 10, 2012
1 parent 13935e4 commit f2aaed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/stm32loader.py
Expand Up @@ -422,7 +422,7 @@ def read(filename):

try:
opts, args = getopt.getopt(sys.argv[1:], "hqVewvrp:b:a:l:")
except getopt.GetoptError, err:
except getopt.GetoptError as err:
# print help information and exit:
print(str(err)) # will print something like "option -a not recognized"
usage()
Expand Down

0 comments on commit f2aaed8

Please sign in to comment.