diff --git a/changedetectionio/content_fetcher.py b/changedetectionio/content_fetcher.py index a0119e91..29bc6d27 100644 --- a/changedetectionio/content_fetcher.py +++ b/changedetectionio/content_fetcher.py @@ -42,7 +42,7 @@ class BrowserStepsStepTimout(Exception): class PageUnloadable(Exception): - def __init__(self, status_code, url, screenshot=False, message=False): + def __init__(self, status_code, url, message, screenshot=False): # Set this so we can use it in other parts of the app self.status_code = status_code self.url = url @@ -332,7 +332,7 @@ class base_html_playwright(Fetcher): print (str(e)) context.close() browser.close() - raise PageUnloadable(url=url, status_code=None) + raise PageUnloadable(url=url, status_code=None, message=str(e)) if response is None: