summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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])