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 01cba21 commit ad3f90fCopy full SHA for ad3f90f
flask_rest_jsonapi/decorators.py
@@ -82,6 +82,9 @@ def wrapper(*args, **kwargs):
82
if current_app.config['DEBUG'] is True:
83
raise e
84
85
+ if 'sentry' in current_app.extensions:
86
+ current_app.extensions['sentry'].captureException()
87
+
88
exc = JsonApiException(getattr(e,
89
'detail',
90
current_app.config.get('GLOBAL_ERROR_MESSAGE') or str(e)),
0 commit comments