Fix pycodestyle 'E722 do not use bare except'

This commit is contained in:
William S Fulton 2017-12-30 21:19:38 +00:00
parent d1e5f1e0c8
commit 0b0aed6842
1 changed files with 2 additions and 2 deletions

View File

@ -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."