Skip to content

Commit

Permalink
Fix fatal LoadException
Browse files Browse the repository at this point in the history
  • Loading branch information
cschramm committed Dec 18, 2024
1 parent 08a6483 commit 1a92d82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* AutoConnect: Store bluetooth address instead of object path
* Applet: Handle UnknownObject DBus error (@tommie)
* Make search button available after device list becomes empty (@astcri)
* 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 @@ -121,7 +121,10 @@ def load_plugin(self, name: Optional[str] = None, user_action: bool = False) ->

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 1a92d82

Please sign in to comment.