From bf359f2db2afb9f94ee31da769ff11ae43974a22 Mon Sep 17 00:00:00 2001 From: Alireza Davoudi Date: Fri, 29 Nov 2019 20:37:54 +0330 Subject: [PATCH] removed error handling from the invoke method --- swagger_ui/api.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/swagger_ui/api.py b/swagger_ui/api.py index 0e7ab11..288d9cb 100755 --- a/swagger_ui/api.py +++ b/swagger_ui/api.py @@ -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: