summaryrefslogtreecommitdiffstats
path: root/pyload/manager/PluginManager.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-01 23:53:07 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-01 23:53:07 +0100
commit004a80bfaad38f9400e8aebcb8f980353a232295 (patch)
tree1e786d2d14a3040767aac237982544b74a9567cb /pyload/manager/PluginManager.py
parentFix previous merge (diff)
downloadpyload-004a80bfaad38f9400e8aebcb8f980353a232295.tar.xz
PEP-8, Python Zen, refactor and reduce code (thx FedeG)
Diffstat (limited to 'pyload/manager/PluginManager.py')
-rw-r--r--pyload/manager/PluginManager.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/manager/PluginManager.py b/pyload/manager/PluginManager.py
index 79c3d6be6..b071ac476 100644
--- a/pyload/manager/PluginManager.py
+++ b/pyload/manager/PluginManager.py
@@ -12,7 +12,7 @@ from traceback import print_exc
from SafeEval import const_eval as literal_eval
-class PluginManager:
+class PluginManager(object):
ROOT = "pyload.plugins."
USERROOT = "userplugins."
TYPES = []
@@ -141,7 +141,7 @@ class PluginManager:
try:
regexp = re.compile(pattern)
- except:
+ except Exception:
self.core.log.error(_("%s has a invalid pattern") % name)
pattern = r'^unmatchable$'
regexp = re.compile(pattern)
@@ -170,7 +170,7 @@ class PluginManager:
config.insert(0, ["activated", "bool", "Activated", False if folder in ("addon", "hook") else True])
self.core.config.addPluginConfig(name, config, desc)
- except:
+ except Exception:
self.core.log.error("Invalid config in %s: %s" % (name, config))
elif folder in ("addon", "hook"): #force config creation
@@ -180,7 +180,7 @@ class PluginManager:
try:
self.core.config.addPluginConfig(name, config, desc)
- except:
+ except Exception:
self.core.log.error("Invalid config in %s: %s" % (name, config))
if not rootplugins and plugins: #: Double check