Skip to content

Commit

Permalink
resolve_gui_or_backend returns None instead of "headless"
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthomas23 committed May 2, 2024
1 parent e18712a commit e458aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/backends/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def resolve_gui_or_backend(self, gui_or_backend):
# First check if it is a gui loop name.
backend = self.backend_for_gui_framework(gui_or_backend)
if backend is not None:
return backend, gui_or_backend
return backend, gui_or_backend if gui_or_backend != "headless" else None

# Then check if it is a backend name.
try:
Expand Down

0 comments on commit e458aa6

Please sign in to comment.