fix: 'NoneType' has no attribute 'name' (#27375)

This commit is contained in:
Saqib 2021-09-07 12:13:22 +05:30 committed by Saqib Ansari
parent 1076e96b87
commit b262f48553

View File

@ -486,7 +486,7 @@ def log_error(data=None):
"Data:", data, seperator,
"Exception:", err_tb
])
frappe.log_error(title=_('E Invoice Request Failed'), message=message)
return frappe.log_error(title=_('E Invoice Request Failed'), message=message)
def santize_einvoice_fields(einvoice):
int_fields = ["Pin","Distance","CrDay"]