Skip to content

Commit ed3c544

Browse files
committed
fix: remove newline in traceback
1 parent 31ccbd6 commit ed3c544

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server/api/memobase_server/api_layer/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async def global_wrapper_middleware(request: Request, call_next):
6565
except Exception as e:
6666
status_code = 500
6767
errmsg = f"Sorry, we have encountered an unknown error: \n{e}\nPlease report this issue to https://github.com/memodb-io/memobase/issues"
68-
traceback_str = traceback.format_exc()
68+
traceback_str = traceback.format_exc().replace("\n", "<br>")
6969
response = JSONResponse(
7070
content={
7171
"data": None,

0 commit comments

Comments
 (0)