fix: Assign exception_type only if exception name available
This commit is contained in:
parent
b375ee9eef
commit
6ded721da4
1 changed files with 1 additions and 1 deletions
|
|
@ -340,7 +340,7 @@ def msgprint(msg, title=None, raise_exception=0, as_table=False, indicator=None,
|
|||
|
||||
message_log.append(json.dumps(out))
|
||||
|
||||
if raise_exception:
|
||||
if raise_exception and raise_exception.get('__name__'):
|
||||
local.response['exc_type'] = raise_exception.__name__
|
||||
|
||||
_raise_exception()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue