diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-10-20 08:58:01 +0200 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-10-20 08:58:01 +0200 |
commit | d386ab064e292e6fa253df2ce2a0a92410bd953a (patch) | |
tree | d22e4fbc1a9dbe0b665e469212d5b5b99456c084 | |
parent | Boring code cosmetics (diff) | |
download | pyload-d386ab064e292e6fa253df2ce2a0a92410bd953a.tar.xz |
Update DeathByCaptcha.py
-rw-r--r-- | module/plugins/hooks/DeathByCaptcha.py | 8 |
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): |