Skip to content
Snippets Groups Projects
Commit fb29b575 authored by Benoit Chauvet's avatar Benoit Chauvet
Browse files

add missing sentry capture

parent 2590258a
No related branches found
No related tags found
No related merge requests found
click
iso8601
requests
sentry-sdk
\ No newline at end of file
......@@ -6,6 +6,8 @@
import logging
from typing import Any, Dict
import sentry_sdk
from swh.core import config
from swh.deposit.client import PrivateApiDepositClient
......@@ -33,6 +35,7 @@ class DepositChecker:
status = "eventful" if r == "verified" else "failed"
except Exception:
logger.exception("Failure during check on '%s'", deposit_check_url)
sentry_sdk.capture_exception()
status = "failed"
logger.debug("Check status: %s", status)
return {"status": status}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment