From e06ac5ff3fbcf762aa8194e3531b425a0fc225e7 Mon Sep 17 00:00:00 2001 From: Florian Duguet Date: Thu, 7 Mar 2019 16:27:32 +0100 Subject: [PATCH] Add new WrongCaptchaResponse exception to weboob.exceptions.py --- weboob/exceptions.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/weboob/exceptions.py b/weboob/exceptions.py index 9bd19191fb..0fe54fd232 100644 --- a/weboob/exceptions.py +++ b/weboob/exceptions.py @@ -64,6 +64,12 @@ def __init__(self, type=None, **kwargs): setattr(self, key, value) +class WrongCaptchaResponse(Exception): + """when website tell us captcha response is not good""" + def __init__(self, message=None): + super(WrongCaptchaResponse, self).__init__(message or "Captcha response is wrong") + + class ImageCaptchaQuestion(CaptchaQuestion): type = 'image_captcha' -- GitLab