fix: use method name as title in error log (#24880)

This commit is contained in:
Prssanna Desai
2021-03-15 18:03:03 +05:30
committed by GitHub
parent f9f10ed743
commit 386b7fd2c3

View File

@@ -117,7 +117,7 @@ def call_mws_method(mws_method, *args, **kwargs):
return response
except Exception as e:
delay = math.pow(4, x) * 125
frappe.log_error(message=e, title=str(mws_method))
frappe.log_error(message=e, title="Method {} failed".format(mws_method.__name__))
time.sleep(delay)
continue