summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/ShareRapidCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-04-11 12:17:03 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2014-04-11 12:17:03 +0200
commit381c4d02a900fac224ccaa802db080cf577ed2fb (patch)
tree7ae70daa2def01e05193d2bbef3a851aa33eeae1 /module/plugins/hoster/ShareRapidCom.py
parentFix EOF (diff)
downloadpyload-381c4d02a900fac224ccaa802db080cf577ed2fb.tar.xz
Fix retry time formats
Merges vuolter/pyload@498b9e3
Diffstat (limited to 'module/plugins/hoster/ShareRapidCom.py')
-rw-r--r--module/plugins/hoster/ShareRapidCom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/ShareRapidCom.py b/module/plugins/hoster/ShareRapidCom.py
index 7f1709865..ac56d258c 100644
--- a/module/plugins/hoster/ShareRapidCom.py
+++ b/module/plugins/hoster/ShareRapidCom.py
@@ -51,7 +51,7 @@ class ShareRapidCom(SimpleHoster):
self.html = self.load(pyfile.url, decode=True)
except BadHeader, e:
self.account.relogin(self.user)
- self.retry(3, 0, str(e))
+ self.retry(max_tries=3, reason=str(e))
self.getFileInfo()
@@ -64,7 +64,7 @@ class ShareRapidCom(SimpleHoster):
else:
if re.search(self.ERR_LOGIN_PATTERN, self.html):
self.relogin(self.user)
- self.retry(3, 0, "User login failed")
+ self.retry(max_tries=3, reason="User login failed")
elif re.search(self.ERR_CREDIT_PATTERN, self.html):
self.fail("Not enough credit left")
else: