We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfaacc5 commit 10be382Copy full SHA for 10be382
src/sentry/conduit/tasks.py
@@ -5,6 +5,7 @@
5
from uuid import uuid4
6
7
import requests
8
+import sentry_sdk
9
from django.conf import settings
10
from google.protobuf.struct_pb2 import Struct
11
from google.protobuf.timestamp_pb2 import Timestamp
@@ -36,7 +37,11 @@
36
37
)
38
def stream_demo_data(org_id: int, channel_id: str) -> None:
39
"""Asynchronously stream data to Conduit."""
- token = generate_jwt(subject="demo")
40
+ try:
41
+ token = generate_jwt(subject="demo")
42
+ except ValueError as e:
43
+ sentry_sdk.capture_exception(e, level="warning")
44
+ return
45
logger.info(
46
"conduit.stream_demo_data.started", extra={"org_id": org_id, "channel_id": channel_id}
47
0 commit comments