fix: Assign exception_type only if exception name available

This commit is contained in:
deepeshgarg007 2019-06-18 18:56:50 +05:30
parent b375ee9eef
commit 6ded721da4

View file

@ -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()