From 2f4d7d614171054c3c2b0b6185fa4ea465f5312f Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 4 Nov 2014 01:09:43 +0100 Subject: Use more print_exc + code cosmetics --- module/plugins/internal/SimpleHoster.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'module/plugins/internal/SimpleHoster.py') diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index 1f673a5c2..ac90e193a 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -24,8 +24,6 @@ def _error(self, reason, type): msg += ": " + reason.strip() if reason else "" msg += _(" | Plugin may be out of date") - if self.core.debug: - print_exc() raise Fail(msg) @@ -315,7 +313,7 @@ class SimpleHoster(Hoster): self.req.http.c.setopt(FOLLOWLOCATION, 1) - if parseFileInfo(self, url, html)[2] != 2: + if parseFileInfo(self, url, html)[2] is not 2: try: return re.search(r"Location\s*:\s*(.+)", self.req.http.header, re.I).group(1) except: -- cgit v1.2.3