From 3ec67077a91f1ac64d5faa948c2cb40f83193f5d Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Wed, 30 Sep 2020 12:00:46 +0530 Subject: [PATCH] chore: use .format for message Co-authored-by: Sagar Vora --- erpnext/non_profit/doctype/membership/membership.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/non_profit/doctype/membership/membership.py b/erpnext/non_profit/doctype/membership/membership.py index 3147b51928..61f4bcad1e 100644 --- a/erpnext/non_profit/doctype/membership/membership.py +++ b/erpnext/non_profit/doctype/membership/membership.py @@ -224,7 +224,7 @@ def trigger_razorpay_subscription(*args, **kwargs): member.subscription_activated = 1 member.save(ignore_permissions=True) except Exception as e: - message = e + '\n\n' + frappe.get_traceback() + '\n\n' + payment.id + message = "{0}\n\n{1}\n\n{2}: {3}".format(e, frappe.get_traceback(), __("Payment ID"), payment.id) log = frappe.log_error(message, "Error creating membership entry for {0}".format(member.name)) notify_failure(log) return { 'status': 'Failed', 'reason': e} @@ -251,4 +251,4 @@ def get_plan_from_razorpay_id(plan_id): try: return plan[0]['name'] except: - return None \ No newline at end of file + return None