Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6125d81

Browse files
committed
Throw an exception if MPLBACKEND is invalid.
1 parent 3590ce2 commit 6125d81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1460,7 +1460,7 @@ def tk_window_focus():
14601460
# variable MPLBACKEND
14611461
try:
14621462
use(os.environ['MPLBACKEND'])
1463-
except (KeyError, ValueError):
1463+
except KeyError:
14641464
pass
14651465

14661466

0 commit comments

Comments
 (0)