Skip to content

Commit

Permalink
Fix fatal LoadException
Browse files Browse the repository at this point in the history
It looks like this rarely ever manifests, but we erroneously stopped catching the exception in c71294c.
  • Loading branch information
cschramm committed Dec 18, 2024
1 parent 88e01e8 commit 657c1dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## main

### Bugs fixed

* Fatal LoadException

### Changes

* Terminate applet on manager termination if it was started by manager
Expand Down
5 changes: 4 additions & 1 deletion blueman/main/PluginManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ def load_plugin(self, name: str | None = None, user_action: bool = False) -> Non

if (cls.__autoload__ or (cl and cls.__name__ in cl)) and \
not (cls.__unloadable__ and cl and "!" + cls.__name__ in cl):
self.__load_plugin(cls)
try:
self.__load_plugin(cls)
except LoadException:
pass

def disable_plugin(self, plugin: str) -> bool:
return False
Expand Down

0 comments on commit 657c1dc

Please sign in to comment.