diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-08-02 09:25:41 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-08-02 09:25:41 +0200 |
commit | 539d2bc721a7363786da06b43de065f1405a61a0 (patch) | |
tree | 841133b472c5cbb73487a51655fe432cc62e5718 /module | |
parent | Fix https://github.com/pyload/pyload/issues/1630 (diff) | |
download | pyload-539d2bc721a7363786da06b43de065f1405a61a0.tar.xz |
Fix https://github.com/pyload/pyload/issues/1640 (3)
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/internal/Plugin.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py index 601acd491..570c984ac 100644 --- a/module/plugins/internal/Plugin.py +++ b/module/plugins/internal/Plugin.py @@ -142,7 +142,7 @@ def chunks(iterable, size): class Plugin(object): __name__ = "Plugin" __type__ = "hoster" - __version__ = "0.25" + __version__ = "0.26" __status__ = "testing" __pattern__ = r'^unmatchable$' @@ -378,11 +378,11 @@ class Plugin(object): """ Clean everything and remove references """ - for a in ("pyfile", "thread", "html"): - if hasattr(self, a): - setattr(self, a, None) - try: self.req.close() - finally: - self.req = None + except Exception: + pass + + for a in ("pyfile", "thread", "html", "req"): + if hasattr(self, a): + setattr(self, a, None) |