From f239a27169608be7b3cf310dafe4acb497fa8896 Mon Sep 17 00:00:00 2001 From: lars Date: Mon, 14 Jan 2008 20:45:14 +0000 Subject: [PATCH] handle invalid plugins patiently --- src/cryptobox/web/dataset.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cryptobox/web/dataset.py b/src/cryptobox/web/dataset.py index 72a5219..d89f4ec 100644 --- a/src/cryptobox/web/dataset.py +++ b/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()