Error: schlegal_get_airport: Airport not found.
Error:
schlegal_get_airport: Airport not found.
It appears that some trips are trying to run legality on have a blank airport ID. If it wasn't blank, but an airport that was not in the airport database, it would have put the ID in the error message. For example if you had a trip to IAH and then went into the airport list and deleted IAH, it would have said Airport IAH not found, but in this case it looks like the error just has a blank space.
Solution:
Add a blank airport to the database.
If the error stops, then this confirms that they have either a leg, crew activity, aircraft home airport, or crew home airport set to blank airport. By adding a blank airport back in, the function can now find the airport it is looking for in the database and the error isn't displayed.