File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,8 @@ def check_method_requirements(func):
57
57
@wraps (func )
58
58
def wrapper (* args , ** kwargs ):
59
59
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 ()}
61
62
62
63
if request .method != 'DELETE' :
63
64
if not hasattr (args [0 ], 'schema' ):
@@ -80,7 +81,7 @@ def wrapper(*args, **kwargs):
80
81
headers )
81
82
except Exception as e :
82
83
if current_app .config ['DEBUG' ] is True or current_app .config .get ('PROPAGATE_EXCEPTIONS' ) is True :
83
- raise e
84
+ raise
84
85
85
86
if 'sentry' in current_app .extensions :
86
87
current_app .extensions ['sentry' ].captureException ()
You can’t perform that action at this time.
0 commit comments