mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: refactor view error handling into a separate module (#29330)
This commit is contained in:
committed by
GitHub
parent
3d0665183c
commit
e749efcb97
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user