From 0b0aed6842db720d72f197f7fccd4fb96e55f550 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 30 Dec 2017 21:19:38 +0000 Subject: [PATCH] Fix pycodestyle 'E722 do not use bare except' --- Examples/python/variables/runme.py | 4 ++-- 1 file 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."