From f25797cd617655f73b828f803e38ccc3e7144e60 Mon Sep 17 00:00:00 2001 From: mellorjc Date: Thu, 19 Feb 2015 11:45:57 +0000 Subject: [PATCH] catch only a specific error catch only NameError, rather than everything. --- GPy/plotting/matplot_dep/maps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/plotting/matplot_dep/maps.py b/GPy/plotting/matplot_dep/maps.py index eef72a6a..a651f34d 100644 --- a/GPy/plotting/matplot_dep/maps.py +++ b/GPy/plotting/matplot_dep/maps.py @@ -9,7 +9,7 @@ try: try: __IPYTHON__ pb.ion() - except: + except NameError: pass except: pass