fix: skip exc without exc id
This commit is contained in:
parent
b38199a3b3
commit
0a38fb0813
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ def report_error(status_code):
|
|||
|
||||
def _link_error_with_message_log(error_log, exception, message_logs):
|
||||
for message in message_logs:
|
||||
if message.get("__frappe_exc_id") == exception.__frappe_exc_id:
|
||||
if message.get("__frappe_exc_id") == getattr(exception, "__frappe_exc_id", None):
|
||||
error_log.update(message)
|
||||
message_logs.remove(message)
|
||||
error_log.pop("raise_exception", None)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue