From ff933e77a1e2591da27bd5af4b4c2d258d12c1e7 Mon Sep 17 00:00:00 2001 From: Samuel Johnson Date: Fri, 5 Dec 2025 08:30:42 -0500 Subject: [PATCH] fix --- TestRule/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/TestRule/__init__.py b/TestRule/__init__.py index 86e81856a..3aa56cd28 100644 --- a/TestRule/__init__.py +++ b/TestRule/__init__.py @@ -10,6 +10,7 @@ import os import asyncio import numpy as np +import traceback class BadRequestError(Exception): @@ -49,11 +50,12 @@ def handle_exception(e: Exception): return func.HttpResponse( json.dumps( { - "errror": "Unknown Exception", + "error": "Unknown Exception", "message": f"An unhandled exception occurred. {str(e)}", + "traceback": traceback.format_exc(), } ), - status_code=500, + status_code=400, )