summaryrefslogtreecommitdiffstats
path: root/pyload
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-05 03:02:25 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-05 03:02:25 +0200
commitcc006ad162ec1370ca6c63b31c42fa4e7d44ad8d (patch)
treedf2687e79eaac2ea5e868c690623829907c8cdf5 /pyload
parentFinish replace word "hook" (diff)
downloadpyload-cc006ad162ec1370ca6c63b31c42fa4e7d44ad8d.tar.xz
Trace broken plugin __pattern__ blocking url parsing
Diffstat (limited to 'pyload')
-rw-r--r--pyload/manager/PluginManager.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/pyload/manager/PluginManager.py b/pyload/manager/PluginManager.py
index 57bba09a2..38edfee7e 100644
--- a/pyload/manager/PluginManager.py
+++ b/pyload/manager/PluginManager.py
@@ -200,8 +200,14 @@ class PluginManager:
continue
for name, value in chain(self.crypterPlugins.iteritems(), self.hosterPlugins.iteritems(),
- self.containerPlugins.iteritems()):
- if value['re'].match(url):
+ self.containerPlugins.iteritems()):
+ try:
+ m = value['re'].match(url)
+ except KeyError:
+ self.log.error("Plugin %s skipped due broken pattern" % name)
+ m = None
+
+ if m:
res.append((url, name))
last = (name, value)
found = True