From 214d52d12caf18882cc170b0e4d50f456c5a59d2 Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Thu, 16 May 2019 14:19:26 +0200 Subject: [PATCH] [weboob/exceptions] Raise exception instead of browser unavailable for 404 errors When we face a 404 error it is more logical to raise a real bug error rather than a browser unavailable because usually 404 errors are not due to the website being unavailable for any reason. This will enable the tracking of 404 errors more easily. --- weboob/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/exceptions.py b/weboob/exceptions.py index b103b47aa4..6ef3a96fa3 100644 --- a/weboob/exceptions.py +++ b/weboob/exceptions.py @@ -125,7 +125,7 @@ def __init__(self, website_key, website_url, sub_domain=None): self.type, website_key=website_key, website_url=website_url, sub_domain=sub_domain) -class BrowserHTTPNotFound(BrowserUnavailable): +class BrowserHTTPNotFound(Exception): pass -- GitLab