Good resource for error handling?


#1

What’s a good resource for how to best handle errors when querying with the FlightAware API?

More specifically, we loop through and query the flight track on a number of recent arrivals, and if the track isn’t available for a single aircraft, our process breaks. Ideally, we’d like to skip the aircraft in this case. I’m using Python with Suds.

Thanks!


#2

Posting my current approach in case others have a similar concern.

For now, going with the old “try:” and “except:” statement in Python.

Surprisingly high error response on the API, something like 1 out of 5 when calling GetLastTrack with idents received from Arrived query.


#3

Not all flights that we track have positional information, so GetLastTrack will not have any data to return for those flights.