Skip to content

Commit

Permalink
HAN-50: fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Agustinefe committed Mar 7, 2024
1 parent 296393c commit 6a238aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/service/plant_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:
Expand All @@ -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)
Expand Down

0 comments on commit 6a238aa

Please sign in to comment.