summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Pedro Algarvio <pedro@algarvio.me> 2012-02-13 13:38:42 +0100
committerGravatar Pedro Algarvio <pedro@algarvio.me> 2012-02-13 13:38:42 +0100
commit526c6cdbdbe1a352333df162e2c1761bb49dabf2 (patch)
tree78b03de75d2821e83e0c9c507cec132c4e81c08c /module
parentDon't fail miserably on hoster's internal server error. (diff)
downloadpyload-526c6cdbdbe1a352333df162e2c1761bb49dabf2.tar.xz
Add the internal server error messages to the pyfile.
Diffstat (limited to 'module')
-rw-r--r--module/plugins/Hoster.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/plugins/Hoster.py b/module/plugins/Hoster.py
index 9f3548350..1f21a27c8 100644
--- a/module/plugins/Hoster.py
+++ b/module/plugins/Hoster.py
@@ -167,6 +167,7 @@ class Hoster(Base):
# Can't seem to import BadHeader
if e.__class__.__name__ == 'BadHeader' and e.code == 500:
self.logInfo("Internal Server Error")
+ self.pyfile.error = _("Internal Server Error")
self.tempOffline()
raise e