Merge pull request #25016 from hasnain2808/fix-ams-error-v13-pre-release

fix: ams integration breaks when error raised
This commit is contained in:
rohitwaghchaure 2021-03-27 09:59:51 +05:30 committed by GitHub
commit 6c7f029597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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