Skip to content

Commit

Permalink
removed error handling from the invoke method
Browse files Browse the repository at this point in the history
  • Loading branch information
adavoudi committed Nov 29, 2019
1 parent 1d9c339 commit bf359f2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions swagger_ui/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ def build_resource(callable, post_parser, get_parser, is_post, is_get):
def invoke_callable(parser, *args, **kwargs):
for key, value in parser.parse_args().items():
kwargs[key] = value
try:
return callable(*args, **kwargs)
except BaseException as e:
abort(500, str(e))
return callable(*args, **kwargs)

if is_post:
if is_get:
Expand Down

0 comments on commit bf359f2

Please sign in to comment.