Skip to content

Commit

Permalink
Merge pull request #157 from ngshiheng/renovate/all-minor-patch
Browse files Browse the repository at this point in the history
fix(deps): update all non-major dependencies
  • Loading branch information
ngshiheng authored Dec 21, 2023
2 parents 6cea93f + e554b31 commit ad03b2f
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 102 deletions.
7 changes: 5 additions & 2 deletions burplist/pipelines.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from itemadapter import ItemAdapter
from itemadapter.adapter import ItemAdapter
from scrapy import Spider
from scrapy.exceptions import DropItem
from sqlalchemy.exc import ProgrammingError
Expand Down Expand Up @@ -86,7 +86,10 @@ def process_item(self, item: ProductItem, spider: Spider) -> ProductItem:
existing_product = session.query(Product).filter_by(url=url, quantity=quantity).one_or_none()

except ProgrammingError as exception:
spider.logger.exception("An unexpected error has occurred.", extra=dict(exception=exception, url=url, quantity=quantity))
spider.logger.exception(
"An unexpected error has occurred.",
extra=dict(exception=exception, url=url, quantity=quantity),
)
raise DropItem(f"Dropping item <{url}> due to unexpected error.") from exception

finally:
Expand Down
154 changes: 61 additions & 93 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ad03b2f

Please sign in to comment.