Fix html escape

This commit is contained in:
abersheeran 2019-08-17 00:40:27 +08:00
parent a94adf0627
commit 606038351e
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ class ServerErrorMiddleware:
exc_html += self.generate_frame_html(frame, center_lineno, is_collapsed)
is_collapsed = True
error = f"{traceback_obj.exc_type.__name__}: {html.escape(traceback_obj)}"
error = f"{traceback_obj.exc_type.__name__}: {html.escape(str(traceback_obj))}"
return TEMPLATE.format(styles=STYLES, js=JS, error=error, exc_html=exc_html)