From e0860ec5345d2392ab8a982d8e1fcf9a9986a587 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 14 Apr 2015 03:23:01 +0200 Subject: [SimpleHoster] Improve latest change a little --- module/plugins/internal/SimpleHoster.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index dc4f480b9..1400fd2b6 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -623,10 +623,7 @@ class SimpleHoster(Hoster): self.tempOffline() elif status is 8: - if 'error' in self.info: - self.fail(self.info['error']) - else: - self.fail("Failed") + self.fail(self.info['error'] if 'error' in self.info else "Failed") finally: self.logDebug("File status: %s" % statusMap[status]) -- cgit v1.2.3