From 539d2bc721a7363786da06b43de065f1405a61a0 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 2 Aug 2015 09:25:41 +0200 Subject: Fix https://github.com/pyload/pyload/issues/1640 (3) --- module/plugins/internal/Plugin.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'module') 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) -- cgit v1.2.3