diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-13 20:15:14 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-13 20:15:14 +0200 |
commit | 973cfeaf006813c6d9a3cbb163e6b15ec1b46977 (patch) | |
tree | 152a70dce7df0baf488e30c4af2cabb264164298 /module/plugins/hoster/RealdebridCom.py | |
parent | little fixes (diff) | |
download | pyload-973cfeaf006813c6d9a3cbb163e6b15ec1b46977.tar.xz |
better retry function
Diffstat (limited to 'module/plugins/hoster/RealdebridCom.py')
-rw-r--r-- | module/plugins/hoster/RealdebridCom.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/module/plugins/hoster/RealdebridCom.py b/module/plugins/hoster/RealdebridCom.py index 65a28669a..2d35108bc 100644 --- a/module/plugins/hoster/RealdebridCom.py +++ b/module/plugins/hoster/RealdebridCom.py @@ -80,10 +80,5 @@ class RealdebridCom(Hoster): if check == "error":
#usual this download can safely be retried
- if self.tries < 3:
- self.tries += 1
- sleep(1)
- self.retry()
- else:
- self.fail("An error occured while generating link.")
+ self.retry(reason="An error occured while generating link.")
|