summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/DeathByCaptcha.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-16 10:17:10 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-27 22:29:53 +0100
commit15f443ea392407e84476a5fb9ff2049de6183ad0 (patch)
tree44ee53289148a73234f73d5df4583b8c5ba5131d /module/plugins/hooks/DeathByCaptcha.py
parent[ClickNLoad] Update (diff)
downloadpyload-15f443ea392407e84476a5fb9ff2049de6183ad0.tar.xz
[addons] Some code cosmetics
Diffstat (limited to 'module/plugins/hooks/DeathByCaptcha.py')
-rw-r--r--module/plugins/hooks/DeathByCaptcha.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/DeathByCaptcha.py b/module/plugins/hooks/DeathByCaptcha.py
index bce13f0fa..0e94c9cda 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 == 403:
+ if e.code is 403:
raise DeathByCaptchaException('not-logged-in')
- elif e.code == 413:
+ elif e.code is 413:
raise DeathByCaptchaException('invalid-captcha')
- elif e.code == 503:
+ elif e.code is 503:
raise DeathByCaptchaException('service-overload')
elif e.code in (400, 405):