From 6e50b0ffdb82457437c741f66dbc592c50ff6a84 Mon Sep 17 00:00:00 2001 From: jjsilvalins <60825497+jjsilvalins@users.noreply.github.com> Date: Thu, 19 Dec 2024 12:49:23 -0300 Subject: [PATCH] Update backend.py Error in Exception handle. The variable `e` used in response doesn'r exists. --- backend/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/backend.py b/backend/backend.py index 013a42e..91287c8 100755 --- a/backend/backend.py +++ b/backend/backend.py @@ -120,7 +120,7 @@ def convert(): result = result[0] except SigmaError as e: return Response(f"SigmaError: {str(e)}", status=400, mimetype="text/html") - except: + except Exception as e: return Response(f"UnknownError: {str(e)}", status=400, mimetype="text/html") return result