diff options
author | 2012-09-22 19:57:54 +0200 | |
---|---|---|
committer | 2012-09-22 19:57:54 +0200 | |
commit | 2c02eac4fc62d33556d5c1ad8748ecbe6a0b812f (patch) | |
tree | a8169eb3b708ac82421f0e80b97f47b1b5af1f96 /module/PluginManager.py | |
parent | web socket api handler (diff) | |
download | pyload-2c02eac4fc62d33556d5c1ad8748ecbe6a0b812f.tar.xz |
fixed the dashboard
Diffstat (limited to 'module/PluginManager.py')
-rw-r--r-- | module/PluginManager.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/PluginManager.py b/module/PluginManager.py index 81a5ee81c..2bd438c37 100644 --- a/module/PluginManager.py +++ b/module/PluginManager.py @@ -49,6 +49,8 @@ class PluginManager: # note the nongreedy character: that means we can not embed list and dicts MULTI = re.compile(r'__(?P<attr>[a-z0-9_]+)__\s*=\s*((?:\{|\[|"{3}).*?(?:"""|\}|\]))', re.DOTALL | re.M | re.I) + NO_MATCH = re.compile(r'^no_match$') + def __init__(self, core): self.core = core @@ -178,8 +180,8 @@ class PluginManager: plugin_re = re.compile(attrs["pattern"]) except: self.logDebug(folder, name, "Invalid regexp pattern '%s'" % attrs["pattern"]) - plugin_re = None - else: plugin_re = None + plugin_re = self.NO_MATCH + else: plugin_re = self.NO_MATCH deps = attrs.get("dependencies", None) |