summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-01 19:07:18 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-01 19:07:18 +0200
commit8f0f372bb33cf9c7d5c5e064d4b9cc07dfb0ec03 (patch)
tree157367ea0d2524f12e7645ccf16118f2342da58a /module/plugins
parentMerge pull request #1895 from Bambie42/stable (diff)
parentUpdate XFSHoster.py (diff)
downloadpyload-8f0f372bb33cf9c7d5c5e064d4b9cc07dfb0ec03.tar.xz
Merge pull request #1902 from GammaC0de/patch-3
[XFSHoster] re-fix #1865
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/internal/XFSHoster.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/XFSHoster.py b/module/plugins/internal/XFSHoster.py
index ce87642f0..dcb85d23b 100644
--- a/module/plugins/internal/XFSHoster.py
+++ b/module/plugins/internal/XFSHoster.py
@@ -253,7 +253,7 @@ class XFSHoster(SimpleHoster):
try:
captcha_key = re.search(self.RECAPTCHA_PATTERN, self.html).group(1)
- except (AttributeError, IndexError):
+ except (AttributeError, IndexError, TypeError):
captcha_key = recaptcha.detect_key()
else:
@@ -267,7 +267,7 @@ class XFSHoster(SimpleHoster):
try:
captcha_key = re.search(self.SOLVEMEDIA_PATTERN, self.html).group(1)
- except (AttributeError, IndexError):
+ except (AttributeError, IndexError, TypeError):
captcha_key = solvemedia.detect_key()
else: