summaryrefslogtreecommitdiffstats
path: root/stator/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'stator/models.py')
-rw-r--r--stator/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/stator/models.py b/stator/models.py
index a84f8c2..426803a 100644
--- a/stator/models.py
+++ b/stator/models.py
@@ -158,7 +158,7 @@ class StatorModel(models.Model):
if settings.SENTRY_ENABLED:
from sentry_sdk import capture_exception
- capture_exception(e)
+ await sync_to_async(capture_exception, thread_sensitive=False)(e)
traceback.print_exc()
else:
if next_state: