Fix pycodestyle 'E722 do not use bare except'
This commit is contained in:
parent
d1e5f1e0c8
commit
0b0aed6842
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue