Fix mypy issue.

This commit is contained in:
Dan Albert 2020-11-15 23:59:20 -08:00
parent e361a857a4
commit 8eef1eaa7c

View File

@ -133,6 +133,9 @@ class TotEstimator:
tot = self.package.time_over_target
else:
tot = flight.flight_plan.tot_for_waypoint(tot_waypoint)
if tot is None:
logging.error(f"TOT waypoint for {flight} has no TOT")
tot = self.package.time_over_target
return tot - travel_time - self.HOLD_TIME
def earliest_tot(self) -> timedelta: