We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 208ab37 commit f844a44Copy full SHA for f844a44
lib/controllers/flight.py
@@ -73,10 +73,10 @@ async def create_flight(
73
else:
74
return FlightCreated(flight_id=flight_repo.flight_id)
75
finally:
76
- if flight_repo:
77
- logger.info(
78
- f"Call to controllers.flight.create_flight completed for Flight {flight_repo.flight_id}"
79
- )
+ 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}"
+ )
80
81
@staticmethod
82
async def get_flight_by_id(
0 commit comments