Browse Source

handle invalid plugins patiently

master
lars 14 years ago
parent
commit
f239a27169
  1. 3
      src/cryptobox/web/dataset.py

3
src/cryptobox/web/dataset.py

@ -204,6 +204,9 @@ class WebInterfaceDataset(dict):
if key.startswith("Settings.PluginList."):
del self[key]
for plugin in self.plugin_manager.get_plugins():
if plugin is None:
self.cbox.log.warn("Invalid plugin detected: %s" % str(plugin))
continue
entry_name = "Settings.PluginList." + plugin.get_name()
self[entry_name] = plugin.get_name()
self[entry_name + ".Rank"] = plugin.get_rank()

Loading…
Cancel
Save