Merge pull request #18854 from ruchamahabal/fixes
fix: exception in Shopify Settings
This commit is contained in:
commit
232b5dab81
@ -58,7 +58,7 @@ class ShopifySettings(Document):
|
||||
d.raise_for_status()
|
||||
self.update_webhook_table(method, d.json())
|
||||
except Exception as e:
|
||||
make_shopify_log(status="Warning", message=e.message, exception=False)
|
||||
make_shopify_log(status="Warning", message=e, exception=False)
|
||||
|
||||
def unregister_webhooks(self):
|
||||
session = get_request_session()
|
||||
@ -71,7 +71,7 @@ class ShopifySettings(Document):
|
||||
res.raise_for_status()
|
||||
deleted_webhooks.append(d)
|
||||
except Exception as e:
|
||||
frappe.log_error(message=frappe.get_traceback(), title=e.message[:140])
|
||||
frappe.log_error(message=frappe.get_traceback(), title=e)
|
||||
|
||||
for d in deleted_webhooks:
|
||||
self.remove(d)
|
||||
|
Loading…
x
Reference in New Issue
Block a user