From 717a2de019f6104b4cc0ff5ef83da31d7be983ec Mon Sep 17 00:00:00 2001 From: Cizz22 Date: Thu, 16 Oct 2025 05:50:45 +0700 Subject: [PATCH] fix --- src/aeros_equipment/service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aeros_equipment/service.py b/src/aeros_equipment/service.py index 9460f03..d200675 100644 --- a/src/aeros_equipment/service.py +++ b/src/aeros_equipment/service.py @@ -130,9 +130,9 @@ async def get_aeros_equipment_by_location_tag(*, location_tag: Union[str, List[s json=aerosNodeReq, headers={"Content-Type": "application/json"}, ) + response.raise_for_status() aerosEquipmentData = response.json() - - raise Exception(aerosEquipmentData) + if not aerosEquipmentData: raise HTTPException(