From 6125d81347e19c1b0860fc23294e424fcd751053 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Wed, 6 Jul 2016 10:55:59 -0700 Subject: [PATCH] Throw an exception if MPLBACKEND is invalid. --- lib/matplotlib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/__init__.py b/lib/matplotlib/__init__.py index b2b0eb1b5714..a132609c1155 100644 --- a/lib/matplotlib/__init__.py +++ b/lib/matplotlib/__init__.py @@ -1460,7 +1460,7 @@ def tk_window_focus(): # variable MPLBACKEND try: use(os.environ['MPLBACKEND']) - except (KeyError, ValueError): + except KeyError: pass