summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/SimpleHoster.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-29 05:49:51 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-29 05:49:51 +0200
commitbb213b7804c840ac66e88ab31768b2a57f6f5771 (patch)
tree5303bd07749b362dab071ada6197fe37dda85b27 /module/plugins/internal/SimpleHoster.py
parent[UptoboxCom] Fixup (diff)
downloadpyload-bb213b7804c840ac66e88ab31768b2a57f6f5771.tar.xz
[SimpleHoster] Fix DB error
Diffstat (limited to 'module/plugins/internal/SimpleHoster.py')
-rw-r--r--module/plugins/internal/SimpleHoster.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index d362a9615..1d44a6642 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -239,7 +239,7 @@ def secondsToMidnight(gmt=0):
class SimpleHoster(Hoster):
__name__ = "SimpleHoster"
__type__ = "hoster"
- __version__ = "1.49"
+ __version__ = "1.50"
__pattern__ = r'^unmatchable$'
__config__ = [("use_premium", "bool", "Use premium account if available" , True),
@@ -492,7 +492,9 @@ class SimpleHoster(Hoster):
self.checkFile()
except Fail, e: #@TODO: Move to PluginThread in 0.4.10
- if str(e) == _("No captcha result obtained in appropiate time by any of the plugins."): #@TODO: Fix in 0.4.10
+ err = str(e) #@TODO: Recheck in 0.4.10
+
+ if err == _("No captcha result obtained in appropiate time by any of the plugins."): #@TODO: Fix in 0.4.10
self.checkFile()
elif self.getConfig('fallback', True) and self.premium:
@@ -500,7 +502,7 @@ class SimpleHoster(Hoster):
self.retryFree()
else:
- raise Fail(e)
+ raise Fail(err)
def downloadLink(self, link, disposition=True):