diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2017-12-30 21:19:38 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2017-12-31 16:19:39 +0000 |
commit | 0b0aed6842db720d72f197f7fccd4fb96e55f550 (patch) | |
tree | 9a3a8328e503250575112f65915a161ca7423c18 /Examples/python | |
parent | d1e5f1e0c87fce759b9106ebca525036149668b0 (diff) | |
download | swig-0b0aed6842db720d72f197f7fccd4fb96e55f550.tar.gz |
Fix pycodestyle 'E722 do not use bare except'
Diffstat (limited to 'Examples/python')
-rw-r--r-- | Examples/python/variables/runme.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Examples/python/variables/runme.py b/Examples/python/variables/runme.py index 3388a0eba..fba485aca 100644 --- a/Examples/python/variables/runme.py +++ b/Examples/python/variables/runme.py @@ -52,14 +52,14 @@ print " Tring to set 'path'" try: example.cvar.path = "Whoa!" print "Hey, what's going on?!?! This shouldn't work" -except: +except Exception: print "Good." print " Trying to set 'status'" try: example.cvar.status = 0 print "Hey, what's going on?!?! This shouldn't work" -except: +except Exception: print "Good." |