vatis-project / vatis-archive

Virtual Automated ATIS Generator for VATSIM
https://docs.vatis.clowd.io
GNU General Public License v3.0
38 stars 20 forks source link

Catch JSON processing errors gracefully #198

Open neilenns opened 3 months ago

neilenns commented 3 months ago

Fixes #197

I believe this will fix exceptions caused by bad JSON data, I've used this exact method to handle bad JSON in another project.

I'm having trouble building locally to test this though, someone who can build should pull the change and try it with the attached JSON file. It should skip one bad record.

Airports.json