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:
|
try:
|
||||||
example.cvar.path = "Whoa!"
|
example.cvar.path = "Whoa!"
|
||||||
print "Hey, what's going on?!?! This shouldn't work"
|
print "Hey, what's going on?!?! This shouldn't work"
|
||||||
except:
|
except Exception:
|
||||||
print "Good."
|
print "Good."
|
||||||
|
|
||||||
print " Trying to set 'status'"
|
print " Trying to set 'status'"
|
||||||
try:
|
try:
|
||||||
example.cvar.status = 0
|
example.cvar.status = 0
|
||||||
print "Hey, what's going on?!?! This shouldn't work"
|
print "Hey, what's going on?!?! This shouldn't work"
|
||||||
except:
|
except Exception:
|
||||||
print "Good."
|
print "Good."
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue