Skip to content

Commit c718e61

Browse files
authored
Merge pull request #6699 from anntzer/warn-on-invalid-MPLBACKEND
MNT: raise if MPLBACKEND is not a valid backend
2 parents efc2402 + 6125d81 commit c718e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/__init__.py

+1-1
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)