diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-09-21 23:35:58 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-09-21 23:35:58 +0200 |
commit | 34244c7a49b099d30456e0bd80cf26a2be3a3208 (patch) | |
tree | 306e77f19f37eb8f1af775c321c9df8de6b394c0 /module/plugins/internal/SimpleHoster.py | |
parent | [FastixRu] Fixup (diff) | |
download | pyload-34244c7a49b099d30456e0bd80cf26a2be3a3208.tar.xz |
Spare improvements and fixes (2)
Diffstat (limited to 'module/plugins/internal/SimpleHoster.py')
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index 2a83389b6..fb55ef762 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -21,7 +21,7 @@ statusMap = dict((v, k) for k, v in _statusMap.items()) class SimpleHoster(Hoster): __name__ = "SimpleHoster" __type__ = "hoster" - __version__ = "1.84" + __version__ = "1.85" __status__ = "testing" __pattern__ = r'^unmatchable$' @@ -124,7 +124,7 @@ class SimpleHoster(Hoster): try: info['pattern'] = re.match(cls.__pattern__, url).groupdict() #: Pattern groups will be saved here - except Exception: + except AttributeError: info['pattern'] = {} if not html and not online: @@ -329,7 +329,7 @@ class SimpleHoster(Hoster): self.log_warning(_("Check result: ") + errmsg, _("Waiting 1 minute and retry")) self.wantReconnect = True - self.retry(wait_time=60, msg=errmsg) + self.retry(delay=60, msg=errmsg) else: if self.CHECK_FILE: self.log_debug("Using custom check rules...") @@ -428,7 +428,7 @@ class SimpleHoster(Hoster): else: self.wantReconnect = True - self.retry(wait_time=60, msg=errmsg) + self.retry(delay=60, msg=errmsg) elif hasattr(self, 'WAIT_PATTERN'): m = re.search(self.WAIT_PATTERN, self.html) |