diff --git a/weboob/exceptions.py b/weboob/exceptions.py index fe7e0f0d6cc294cb5fa7df42b37edae00490697f..d3b976dbd29aad058465ef7a1a2acd35e0bd5d28 100644 --- a/weboob/exceptions.py +++ b/weboob/exceptions.py @@ -17,7 +17,6 @@ # You should have received a copy of the GNU Affero General Public License # along with weboob. If not, see . - class BrowserIncorrectPassword(Exception): pass @@ -34,7 +33,11 @@ class BrowserUnavailable(Exception): pass -class BrowserQuestion(BrowserIncorrectPassword): +class BrowserInteraction(Exception): + pass + + +class BrowserQuestion(BrowserInteraction): """ When raised by a browser, """ @@ -42,6 +45,11 @@ def __init__(self, *fields): self.fields = fields +class BrowserRedirect(BrowserInteraction): + def __init__(self, url): + self.url = url + + class CaptchaQuestion(Exception): """Site requires solving a CAPTCHA (base class)""" # could be improved to pass the name of the backendconfig key