mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
FIX connector_walmart next cursor should be all of the parameters from the value of the nextCursor
This commit is contained in:
@@ -152,7 +152,7 @@ class Walmart(object):
|
||||
))
|
||||
elif response.status_code == 400:
|
||||
data = response.json()
|
||||
if data["error"][0]["code"] == \
|
||||
if data.get("error", [{}])[0].get("code", '') == \
|
||||
"INVALID_TOKEN.GMP_GATEWAY_API":
|
||||
# Refresh the token as the current token has expired
|
||||
self.authenticate()
|
||||
|
||||
Reference in New Issue
Block a user