fix: ams integration breaks when error raised (#24383)

This commit is contained in:
Mohammad Hasnain Mohsin Rajan
2021-02-25 18:36:19 +05:30
committed by GitHub
parent 6af3c3fa2a
commit 8cdba8ab64

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=f'Method "{mws_method.__name__}" failed')
time.sleep(delay)
continue