diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-05 03:02:25 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-05 03:02:25 +0200 |
commit | cc006ad162ec1370ca6c63b31c42fa4e7d44ad8d (patch) | |
tree | df2687e79eaac2ea5e868c690623829907c8cdf5 /pyload | |
parent | Finish replace word "hook" (diff) | |
download | pyload-cc006ad162ec1370ca6c63b31c42fa4e7d44ad8d.tar.xz |
Trace broken plugin __pattern__ blocking url parsing
Diffstat (limited to 'pyload')
-rw-r--r-- | pyload/manager/PluginManager.py | 10 |
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 |