Skip to content

Commit

Permalink
quick fix for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashmil-1999 committed Dec 6, 2023
1 parent 0236ef2 commit deb7a7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/crud/crud_station.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def get(self, db: Session, id: Any) -> Optional[Station]:
station = cast(
Station, db.query(self.model).filter(self.model.name == id).first()
)
station.species = binomial_only(station.species)
if station:
station.species = binomial_only(station.species)
return station


Expand Down

0 comments on commit deb7a7c

Please sign in to comment.