Skip to content

Commit

Permalink
remove item from being logged in DropItem
Browse files Browse the repository at this point in the history
  • Loading branch information
BurnzZ committed Jul 31, 2024
1 parent f271b92 commit 3fac896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion duplicate_url_discarder/pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def process_item(self, item: T, spider: Spider) -> T:

signature = item_signature(ItemAdapter(item), item_attributes)
if signature in self._seen_item_signatures:
raise DropItem(f"Dropping item that was already seen before:\n{item}")
raise DropItem("Dropping item that was already seen before.")

self._seen_item_signatures.add(signature)
return item

0 comments on commit 3fac896

Please sign in to comment.