Skip to content

Commit

Permalink
PluginManager: Drop blanket exception in Load()
Browse files Browse the repository at this point in the history
Blanket exception handling hides bugs and __load_plugin handles errors
already.
  • Loading branch information
infirit committed Nov 30, 2017
1 parent eb98a2b commit c71294c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions blueman/main/PluginManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,7 @@ def Load(self, name=None, user_action=False):
cls.__unloadable__ = False

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

def Disabled(self, plugin):
return False
Expand Down

0 comments on commit c71294c

Please sign in to comment.