From 6a238aa45252af35bcf1ed2c5ae9858b5223d351 Mon Sep 17 00:00:00 2001 From: Agustinefe Date: Thu, 7 Mar 2024 18:21:41 -0300 Subject: [PATCH] HAN-50: fix linter issues --- app/service/plant_service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/service/plant_service.py b/app/service/plant_service.py index 0798270..64e2887 100644 --- a/app/service/plant_service.py +++ b/app/service/plant_service.py @@ -31,7 +31,7 @@ async def get_plant(plant_id: int) -> Optional[PlantSchema]: return None else: return response.raise_for_status().json() - + except Exception as e: logger.error( "Plant service cannot be accessed because: " + str(e) @@ -40,7 +40,7 @@ async def get_plant(plant_id: int) -> Optional[PlantSchema]: status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail="Plant service service cannot be accessed", ) - + @staticmethod async def get_plant_type(botanical_name: str) -> Optional[PlantTypeSchema]: try: @@ -54,7 +54,7 @@ async def get_plant_type(botanical_name: str) -> Optional[PlantTypeSchema]: return None else: return response.raise_for_status().json() - + except Exception as e: logger.error( "Plant service cannot be accessed because: " + str(e)