Skip to content

Commit

Permalink
fix: fix wrong call to logger.exception
Browse files Browse the repository at this point in the history
fixes #1440
  • Loading branch information
raphael0202 committed Oct 25, 2024
1 parent e8eed45 commit 5b0c52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robotoff/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def save_facet_metrics():
try:
count = get_product_count(server_type, country_tag)
except Exception:
logger.exception()
logger.exception("Error during product count retrieval for %s", country_tag)

Check warning on line 125 in robotoff/metrics.py

View check run for this annotation

Codecov / codecov/patch

robotoff/metrics.py#L125

Added line #L125 was not covered by tests
count = None

for url_path in URL_PATHS:
Expand Down

0 comments on commit 5b0c52c

Please sign in to comment.