feat: raise exception with response body in equipment service for debugging

main
Cizz22 3 months ago
parent 35494c4c53
commit d3a9a4fdbe

@ -258,6 +258,8 @@ def get_asset_batch(location_tags: List[str], nr_location_tags: List[str],
timeout=timeout
)
raise Exception(response.json())
response.raise_for_status() # Raises an HTTPError for bad responses
data = response.json()
reliabiility_data = data.get("data", [])

Loading…
Cancel
Save