diff options
author | 2015-12-31 15:40:01 +0100 | |
---|---|---|
committer | 2015-12-31 15:40:01 +0100 | |
commit | 3f4a19e7869afb0c856ccffc1124339899fd464b (patch) | |
tree | bb07fdc01379ff977f5c8843accaa4749d29bad5 /module/plugins/hooks/DeathByCaptcha.py | |
parent | [Addon] Fix download_finished call (diff) | |
download | pyload-3f4a19e7869afb0c856ccffc1124339899fd464b.tar.xz |
Spare code fixed + isdownload -> isresource
Diffstat (limited to 'module/plugins/hooks/DeathByCaptcha.py')
-rw-r--r-- | module/plugins/hooks/DeathByCaptcha.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/DeathByCaptcha.py b/module/plugins/hooks/DeathByCaptcha.py index 62cfe7d16..7e50a97f3 100644 --- a/module/plugins/hooks/DeathByCaptcha.py +++ b/module/plugins/hooks/DeathByCaptcha.py @@ -94,13 +94,13 @@ class DeathByCaptcha(Addon): raise DeathByCaptchaException(str(res)) except BadHeader, e: - if e.code is 403: + if e.code == 403: raise DeathByCaptchaException('not-logged-in') - elif e.code is 413: + elif e.code == 413: raise DeathByCaptchaException('invalid-captcha') - elif e.code is 503: + elif e.code == 503: raise DeathByCaptchaException('service-overload') elif e.code in (400, 405): |