mirror of https://github.com/swig/swig
Fix pycodestyle 'E722 do not use bare except'
This commit is contained in:
parent
d1e5f1e0c8
commit
0b0aed6842
|
@ -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."
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue