Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions TestRule/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import os
import asyncio
import numpy as np
import traceback


class BadRequestError(Exception):
Expand Down Expand Up @@ -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,
)


Expand Down
Loading