🐛 fix(service.py): add error handling for HTTP response in StoreService to improve reliability and prevent silent failures

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-01 10:17:31 -03:00
commit 4e0273a9df

View file

@ -335,6 +335,7 @@ class StoreService(Service):
headers=headers, headers=headers,
) )
response.raise_for_status()
if response.status_code == 200: if response.status_code == 200:
result = response.json() result = response.json()