Spaces:
Sleeping
Sleeping
fix response
Browse files
app.py
CHANGED
@@ -86,10 +86,9 @@ def request_product_id(shop_domain, product_key):
|
|
86 |
}
|
87 |
|
88 |
response = requests.post(ENDPOINT, headers=headers, json=payload)
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
return data
|
93 |
|
94 |
# payload = {
|
95 |
# "operationName": "PDPGetLayoutQuery",
|
|
|
86 |
}
|
87 |
|
88 |
response = requests.post(ENDPOINT, headers=headers, json=payload)
|
89 |
+
response.raise_for_status()
|
90 |
+
logger.info(response)
|
91 |
+
return response
|
|
|
92 |
|
93 |
# payload = {
|
94 |
# "operationName": "PDPGetLayoutQuery",
|