diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-14 03:23:01 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-14 03:23:01 +0200 |
commit | e0860ec5345d2392ab8a982d8e1fcf9a9986a587 (patch) | |
tree | 0a8376d6a89736fc2b02ac40543dc27eddddc9e6 | |
parent | Merge pull request #1353 from GammaC0de/stable (diff) | |
download | pyload-e0860ec5345d2392ab8a982d8e1fcf9a9986a587.tar.xz |
[SimpleHoster] Improve latest change a little
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 5 |
1 files changed, 1 insertions, 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]) |