0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00

Capture EE webhook task sending error (#3254)

This commit is contained in:
Michael Matloka 2021-02-09 11:25:52 +01:00 committed by GitHub
parent b7133c47b3
commit 62846fd565
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,7 @@ import pytz
from dateutil.parser import isoparse
from django.utils import timezone
from rest_framework import serializers
from sentry_sdk import capture_exception
from ee.clickhouse.client import sync_execute
from ee.clickhouse.models.element import chain_to_elements, elements_to_string
@ -80,7 +81,7 @@ def create_event(
),
)
except:
pass
capture_exception()
return str(event_uuid)