Skip to content

Commit eb38153

Browse files
authored
Merge pull request #166 from jmileson/master
Retain stack frame in debug mode
2 parents 1fda952 + 854934a commit eb38153

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flask_rest_jsonapi/decorators.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ def check_method_requirements(func):
5757
@wraps(func)
5858
def wrapper(*args, **kwargs):
5959
error_message = "You must provide {error_field} in {cls} to get access to the default {method} method"
60-
error_data = {'cls': args[0].__class__.__name__, 'method': request.method.lower()}
60+
error_data = {'cls': args[0].__class__.__name__,
61+
'method': request.method.lower()}
6162

6263
if request.method != 'DELETE':
6364
if not hasattr(args[0], 'schema'):
@@ -80,7 +81,7 @@ def wrapper(*args, **kwargs):
8081
headers)
8182
except Exception as e:
8283
if current_app.config['DEBUG'] is True or current_app.config.get('PROPAGATE_EXCEPTIONS') is True:
83-
raise e
84+
raise
8485

8586
if 'sentry' in current_app.extensions:
8687
current_app.extensions['sentry'].captureException()

0 commit comments

Comments
 (0)