Przeglądaj źródła

Make sure error is str

Lengyue 1 rok temu
rodzic
commit
f4715ed712
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tools/webui.py

+ 1 - 1
tools/webui.py

@@ -52,7 +52,7 @@ def build_html_error_message(error):
     return f"""
     <div style="color: red; 
     font-weight: bold;">
-        {html.escape(error)}
+        {html.escape(str(error))}
     </div>
     """