pull/2041/head
dgtlmoon 6 months ago
parent 9da549c92d
commit a855b3dd51

@ -1,6 +1,5 @@
from loguru import logger from loguru import logger
class Non200ErrorCodeReceived(Exception): class Non200ErrorCodeReceived(Exception):
def __init__(self, status_code, url, screenshot=None, xpath_data=None, page_html=None): def __init__(self, status_code, url, screenshot=None, xpath_data=None, page_html=None):
# Set this so we can use it in other parts of the app # Set this so we can use it in other parts of the app
@ -81,7 +80,7 @@ class ScreenshotUnavailable(Exception):
self.status_code = status_code self.status_code = status_code
self.url = url self.url = url
if page_html: if page_html:
from html_tools import html_to_text from changedetectionio.html_tools import html_to_text
self.page_text = html_to_text(page_html) self.page_text = html_to_text(page_html)
return return

Loading…
Cancel
Save