diff --git a/src/aeros_equipment/service.py b/src/aeros_equipment/service.py index b3d56c5..9460f03 100644 --- a/src/aeros_equipment/service.py +++ b/src/aeros_equipment/service.py @@ -131,6 +131,8 @@ async def get_aeros_equipment_by_location_tag(*, location_tag: Union[str, List[s headers={"Content-Type": "application/json"}, ) aerosEquipmentData = response.json() + + raise Exception(aerosEquipmentData) if not aerosEquipmentData: raise HTTPException( @@ -143,7 +145,7 @@ async def get_aeros_equipment_by_location_tag(*, location_tag: Union[str, List[s return df.drop_duplicates().to_dict('records') - except httpx.HTTPStatusError as e: + except Exception as e: raise HTTPException( status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(e) )