Skip to content

Commit cb18c18

Browse files
committed
added better stack trace processing for both load time and runtime failures
1 parent 7b14507 commit cb18c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adk/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def create_exception(exception, loading_exception=False):
5757
response = json.dumps({
5858
"error": {
5959
"message": str(exception),
60-
"stacktrace": traceback.format_exc(),
60+
"stacktrace": " ".join(traceback.format_exception(etype=type(exception), value=exception, tb=exception.__traceback__)),
6161
"error_type": error_type,
6262
}
6363
})

0 commit comments

Comments
 (0)