Skip to content

Commit

Permalink
feat: Issue all warnings, including the ones we collect
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed May 9, 2024
1 parent 5bc8884 commit 46b71c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kingfisher_scrapy/extensions/database_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ def spider_closed(self, spider, reason):
for w in wlist:
if issubclass(w.category, MergeErrorWarning):
errors.append(w)
else:
warnings.warn_explicit(w.message, w.category, w.filename, w.lineno, source=w.source)

warnings.warn_explicit(w.message, w.category, w.filename, w.lineno, source=w.source)

if errors:
spider.logger.error("%d OCIDs can't be merged due to structural errors", len(errors))
Expand Down

0 comments on commit 46b71c4

Please sign in to comment.