mirror of https://github.com/encode/starlette.git
Fix html escape
This commit is contained in:
parent
a94adf0627
commit
606038351e
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue