Return a controlled value when the link is invalid (not an amazon link) so we avoid throwing an exception

This commit is contained in:
Alejandro Perez Lopez
2024-03-20 21:34:16 +01:00
parent 70f305b758
commit b7322c863d

View File

@@ -67,6 +67,9 @@ def extract_amazon_url_with_referer(text: str):
return helpers.new_refer_url(product_code, extra_params), original_message
# we return here the original message without modification and None for the URL marking that the url is not valid
return None, text
def resolve_captcha(driver: webdriver):
logging.info("Trying to resolve captcha")