Skip to content

Commit

Permalink
allow invalid backend to error
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishavlin committed Apr 24, 2024
1 parent a90e4ab commit eb4164c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions yt/visualization/base_plot_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,7 @@ def _get_canvas_classes(self):
else:
key = "agg"

try:
module, fig_canvas, fig_manager = BACKEND_SPECS[key]
except KeyError as err:
msg = f"{key} is not in list of valid backends: {list(BACKEND_SPECS)}."
raise KeyError(msg) from err
module, fig_canvas, fig_manager = BACKEND_SPECS[key]

mod = __import__(
"matplotlib.backends",
Expand Down

0 comments on commit eb4164c

Please sign in to comment.