From f4bcb600bf658c51483f4d81ae50a57a58fbbeca Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Thu, 4 Nov 2021 14:09:36 +0100 Subject: [PATCH] Minor fix in server --- server/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/main.py b/server/main.py index f1e0d2a..f645b78 100644 --- a/server/main.py +++ b/server/main.py @@ -42,8 +42,8 @@ def get_diff(stream_id: str, commit_current: str, commit_previous: str, request: diff_commit = mesh_differ.process_diff( stream_id, commit_current, commit_previous) except Exception as e: - print(e.with_traceback()) - raise HTTPException(500, e.with_traceback()) + print(str(e)) + raise HTTPException(500, str(e)) return {"commit": diff_commit} @@ -70,5 +70,5 @@ def get_diff_check(stream_id: str, commit_current: str, commit_previous: str, re return {"exists": False, "commit": None} except Exception as e: - print(e.with_traceback()) - raise HTTPException(500, e.with_traceback()) + print(str(e)) + raise HTTPException(500, str(e))