chore: fix unexpected keyword in shopify_settings (#19430)
chore: fix unexpected keyword in shopify_settings
This commit is contained in:
commit
bcf107b9f7
@ -39,7 +39,7 @@ def get_message(exception):
|
||||
if hasattr(exception, 'message'):
|
||||
message = exception.message
|
||||
elif hasattr(exception, '__str__'):
|
||||
message = e.__str__()
|
||||
message = exception.__str__()
|
||||
else:
|
||||
message = "Something went wrong while syncing"
|
||||
return message
|
||||
|
@ -43,7 +43,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, exception=False)
|
||||
make_shopify_log(status="Warning", exception=e, rollback=True)
|
||||
|
||||
def unregister_webhooks(self):
|
||||
session = get_request_session()
|
||||
|
Loading…
x
Reference in New Issue
Block a user