From a30534b5587a4ab3c77697ff238bb82ebed9c4e1 Mon Sep 17 00:00:00 2001 From: Avasam Date: Sat, 12 Aug 2023 15:29:49 -0400 Subject: [PATCH] Possible fix for pycln + optimisation --- isapi/threaded_extension.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/isapi/threaded_extension.py b/isapi/threaded_extension.py index b31c8c9e70..0e89da5832 100644 --- a/isapi/threaded_extension.py +++ b/isapi/threaded_extension.py @@ -165,11 +165,12 @@ def HandleDispatchError(self, ecb): list = traceback.format_tb( exc_tb, limit ) + traceback.format_exception_only(exc_typ, exc_val) + bold = list.pop() print( "
%s%s
" % ( - cgi.escape("".join(list[:-1])), - cgi.escape(list[-1]), + cgi.escape("".join(list)), + cgi.escape(bold), ), file=ecb, )