Skip to content

Commit

Permalink
Update try except for WebsiteVersionNotSupported to log only error an…
Browse files Browse the repository at this point in the history
…d return non-valid Info
  • Loading branch information
Crinibus committed Dec 29, 2023
1 parent 9da260e commit 49b726a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper/domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def get_product_info(self) -> Info:
logging.getLogger(__name__).exception(f"Could not get all the data needed from url: {self.url}")
return Info(None, None, None, None, valid=False)
except WebsiteVersionNotSupported as ex:
logging.getLogger(__name__).exception(ex)
print(ex)
logging.getLogger(__name__).error(ex)
return Info(None, None, None, None, valid=False)

def _request_product_data(self) -> None:
# option for each specific class to change how the request data is being handled
Expand Down

0 comments on commit 49b726a

Please sign in to comment.