Skip to content

Commit

Permalink
Update lib/controllers/flight.py
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
GabrielBarberini and coderabbitai[bot] authored Nov 16, 2024
1 parent 208ab37 commit f844a44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/controllers/flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ async def create_flight(
else:
return FlightCreated(flight_id=flight_repo.flight_id)
finally:
if flight_repo:
logger.info(
f"Call to controllers.flight.create_flight completed for Flight {flight_repo.flight_id}"
)
flight_id = getattr(flight_repo, 'flight_id', 'unknown') if flight_repo else 'unknown'
logger.info(
f"Call to controllers.flight.create_flight completed for Flight {flight_id}"
)

@staticmethod
async def get_flight_by_id(
Expand Down

0 comments on commit f844a44

Please sign in to comment.