From 2c02eac4fc62d33556d5c1ad8748ecbe6a0b812f Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 22 Sep 2012 19:57:54 +0200 Subject: fixed the dashboard --- module/PluginManager.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'module/PluginManager.py') 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[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) -- cgit v1.2.3