Skip to content

Commit ad3f90f

Browse files
committed
reintegrate sentry management
1 parent 01cba21 commit ad3f90f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flask_rest_jsonapi/decorators.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ def wrapper(*args, **kwargs):
8282
if current_app.config['DEBUG'] is True:
8383
raise e
8484

85+
if 'sentry' in current_app.extensions:
86+
current_app.extensions['sentry'].captureException()
87+
8588
exc = JsonApiException(getattr(e,
8689
'detail',
8790
current_app.config.get('GLOBAL_ERROR_MESSAGE') or str(e)),

0 commit comments

Comments
 (0)