skylines
skylines copied to clipboard
[WIP] commands.import.airspace: Skip import of non-available airspaces
This commit doesn't implement proper error handling yet, command could result in the deletion of previously downloaded airspaces:
Downloading http://soaringweb.org/Airspace/NL/EHv17_3.txt
Download failed: Server issued an error response.
removing all entries for country_code nl
reading /tmp/nl/nl.openair
Fixes #898.
@kerel-fs this seems like an important fix. Two questions:
- Should the server deleted previously downloaded airspaces if the attempt to download a new one fails? Sounds a bit disruptive. For example, you could be trying to update the database and because of one failure now you have none airspaces.
- What else do you need in order to move forward with this PR?