catch only a specific error

catch only NameError, rather than everything.
This commit is contained in:
mellorjc 2015-02-19 11:45:57 +00:00
parent 7ad275ce8a
commit f25797cd61

View file

@ -9,7 +9,7 @@ try:
try:
__IPYTHON__
pb.ion()
except:
except NameError:
pass
except:
pass