diff options
author | jerous <jerous@gmail.com> | 2008-11-15 23:24:01 +0100 |
---|---|---|
committer | jerous <jerous@gmail.com> | 2008-11-15 23:24:01 +0100 |
commit | e64ef41273dbc4c7dc6e7fc524af00331ff2b740 (patch) | |
tree | f8698fb00c8ecd411144d376b30119edb6e31039 /plugins | |
parent | 1abac81ba802be21e40b93fe8b9b408c1d281d5d (diff) |
erase plugin instance when reloading fails
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/__init__.py b/plugins/__init__.py index 69e8a4c..aa940bc 100644 --- a/plugins/__init__.py +++ b/plugins/__init__.py @@ -54,6 +54,7 @@ def loadPlugin(className, parent): except Exception, e: _plugins[className.lower()][PLUGIN_MSG]=str(e) + _plugins[className.lower()][PLUGIN_INSTANCE]=None log.important("Failed to load plugin %s: %s %s"%(className, str(type(e)), str(e))) return None |