Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] commands.import.airspace: Skip import of non-available airspaces #899

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kerel-fs
Copy link
Contributor

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.

@mongrelion
Copy link

@kerel-fs this seems like an important fix. Two questions:

  1. 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.
  2. What else do you need in order to move forward with this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Airspace import aborts when a server returns 404
2 participants