Skip to content

Commit

Permalink
On disable, dont try to pop a key that doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
psobolewskiPhD authored Jul 28, 2024
1 parent eeeeacc commit 73995ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/npe2/_plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def disable(self, plugin_name: PluginName) -> None:

self._disabled_plugins.add(plugin_name)
self._contrib.remove_contributions(plugin_name)
self._command_menu_map.pop(plugin_name)
self._command_menu_map.pop(plugin_name, None)
self.events.enablement_changed({}, {plugin_name})

def is_disabled(self, plugin_name: str) -> bool:
Expand Down

0 comments on commit 73995ca

Please sign in to comment.