for name, p in zip(plugin_names, plugin_modules):
try:
plugins.append( p.Plugin(self, name) )
- except:
+ except Exception:
print_msg(_("Error: cannot initialize plugin"),p)
traceback.print_exc(file=sys.stdout)
global plugins
+ found = 0
+
for p in plugins:
if not p.is_enabled():
if not callable(f):
continue
+ found += 1
+
try:
f(*args)
- except:
+ except Exception:
print_error("Plugin error")
traceback.print_exc(file=sys.stdout)
- return
+ return found