summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/DeathByCaptcha.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-20 16:17:53 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-20 16:17:53 +0200
commitd6d77446936b32447119a01b60ae4859736af3e9 (patch)
tree435b5a6599cf8c1d59959ef03008ff27962cbf3f /module/plugins/hooks/DeathByCaptcha.py
parent[utils] Version up (diff)
parentUpdate DeathByCaptcha.py (diff)
downloadpyload-d6d77446936b32447119a01b60ae4859736af3e9.tar.xz
Merge pull request #2080 from GammaC0de/patch-6
[DeathByCaptcha] update
Diffstat (limited to 'module/plugins/hooks/DeathByCaptcha.py')
-rw-r--r--module/plugins/hooks/DeathByCaptcha.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hooks/DeathByCaptcha.py b/module/plugins/hooks/DeathByCaptcha.py
index 229c85791..5c1c89c88 100644
--- a/module/plugins/hooks/DeathByCaptcha.py
+++ b/module/plugins/hooks/DeathByCaptcha.py
@@ -51,7 +51,7 @@ class DeathByCaptchaException(Exception):
class DeathByCaptcha(Addon):
__name__ = "DeathByCaptcha"
__type__ = "hook"
- __version__ = "0.09"
+ __version__ = "0.10"
__status__ = "testing"
__config__ = [("activated" , "bool" , "Activated" , False),
@@ -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):