Skip to content

Commit

Permalink
Possible fix for pycln + optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Aug 12, 2023
1 parent 749c7e8 commit a30534b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions isapi/threaded_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
"<PRE>%s<B>%s</B></PRE>"
% (
cgi.escape("".join(list[:-1])),
cgi.escape(list[-1]),
cgi.escape("".join(list)),
cgi.escape(bold),
),
file=ecb,
)
Expand Down

0 comments on commit a30534b

Please sign in to comment.