diff options
| author | 2015-03-11 14:22:45 +0100 | |
|---|---|---|
| committer | 2015-03-11 14:22:45 +0100 | |
| commit | 6f36b6314cecb7ff32e4f038751a18b7d4abd3d2 (patch) | |
| tree | df92d01840809f1733d179c52d0be4d5901e0137 /module/plugins/hoster/BasePlugin.py | |
| parent | Merge pull request #1247 from sebdelsol/patch-3 (diff) | |
| download | pyload-6f36b6314cecb7ff32e4f038751a18b7d4abd3d2.tar.xz | |
[SimpleHoster] Fix https://github.com/pyload/pyload/issues/1248
Diffstat (limited to 'module/plugins/hoster/BasePlugin.py')
| -rw-r--r-- | module/plugins/hoster/BasePlugin.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/module/plugins/hoster/BasePlugin.py b/module/plugins/hoster/BasePlugin.py index a26a7a180..ba0f1781e 100644 --- a/module/plugins/hoster/BasePlugin.py +++ b/module/plugins/hoster/BasePlugin.py @@ -89,14 +89,16 @@ class BasePlugin(Hoster): 'Html error' : re.compile(r'\A(?:\s*<.+>)?((?:[\w\s]*(?:[Ee]rror|ERROR)\s*\:?)?\s*\d{3})(?:\Z|\s+)'), 'Html file' : re.compile(r'\A\s*<!DOCTYPE html'), 'Unknown error': re.compile(r'([Aa]n error occured while processing your request)')}) - if errmsg: - try: - errmsg += " | " + self.lastCheck.group(1).strip() - except Exception: - pass + if not errmsg: + return + + try: + errmsg += " | " + self.lastCheck.group(1).strip() + except Exception: + pass - self.logWarning("Bad file", "Waiting 1 minute and retry") - self.retry(3, 60, errmsg) + self.logWarning("Bad file", "Waiting 1 minute and retry") + self.retry(3, 60, errmsg) getInfo = create_getInfo(BasePlugin) |
