diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-14 22:33:41 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-07-14 22:33:41 +0200 |
commit | 67fb22b2f84aa9d3f8a8a966932f6191db7ead00 (patch) | |
tree | 83e83c506f4e08a94584543f4bd4876d4e11cbc4 /module/plugins/PluginManager.py | |
parent | fixed download aborting #2 (diff) | |
download | pyload-67fb22b2f84aa9d3f8a8a966932f6191db7ead00.tar.xz |
clsoed #352
Diffstat (limited to 'module/plugins/PluginManager.py')
-rw-r--r-- | module/plugins/PluginManager.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/PluginManager.py b/module/plugins/PluginManager.py index 333f9e247..94c20cd5a 100644 --- a/module/plugins/PluginManager.py +++ b/module/plugins/PluginManager.py @@ -182,7 +182,10 @@ class PluginManager(): if folder == "hooks": config.append(["load", "bool", "Load on startup", True if name not in NO_AUTOLOAD else False]) - self.core.config.addPluginConfig(name, config, desc) + try: + self.core.config.addPluginConfig(name, config, desc) + except : + self.log.error("Invalid config in %s: %s" % (name, config)) if not home: temp = self.parse(typ, folder, create, pattern, plugins) |