summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-14 03:23:01 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-14 03:23:01 +0200
commite0860ec5345d2392ab8a982d8e1fcf9a9986a587 (patch)
tree0a8376d6a89736fc2b02ac40543dc27eddddc9e6
parentMerge pull request #1353 from GammaC0de/stable (diff)
downloadpyload-e0860ec5345d2392ab8a982d8e1fcf9a9986a587.tar.xz
[SimpleHoster] Improve latest change a little
-rw-r--r--module/plugins/internal/SimpleHoster.py5
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])