From bd3a9e91b3f2b6e079209d9a949dbe5651b1a5ca Mon Sep 17 00:00:00 2001 From: Vincent Ardisson Date: Thu, 20 Dec 2018 15:57:15 +0100 Subject: [PATCH] weboob.exceptions: BrowserRedirect's __str__ should display url --- weboob/exceptions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weboob/exceptions.py b/weboob/exceptions.py index d3b976dbd2..d77b2d4766 100644 --- a/weboob/exceptions.py +++ b/weboob/exceptions.py @@ -49,6 +49,9 @@ class BrowserRedirect(BrowserInteraction): def __init__(self, url): self.url = url + def __str__(self): + return 'Redirecting to %s' % self.url + class CaptchaQuestion(Exception): """Site requires solving a CAPTCHA (base class)""" -- GitLab