fix: refactor view error handling into a separate module (#29330)

This commit is contained in:
Maxime Beauchemin
2024-07-09 10:16:40 -07:00
committed by GitHub
parent 3d0665183c
commit e749efcb97
9 changed files with 236 additions and 206 deletions

View File

@@ -433,7 +433,7 @@ def error_msg_from_exception(ex: Exception) -> str:
msg = ex.message.get("message") # type: ignore
elif ex.message:
msg = ex.message
return msg or str(ex)
return str(msg) or str(ex)
def markdown(raw: str, markup_wrap: bool | None = False) -> str: