codeforIATI / iati-datastore

An open-source datastore for IATI data with RESTful web API providing XML, JSON, CSV plus ETL tools
https://datastore.codeforiati.org
Other
1 stars 1 forks source link

Update iatikit to 3.3.0 #353

Closed andylolz closed 2 years ago

andylolz commented 2 years ago

This version of iatikit will throw a FileNotFoundError if dataset.raw_xml is called for a missing dataset (i.e. a dataset for which we have metadata but no data, presumably because data download failed).

This will be caught here: https://github.com/codeforIATI/iati-datastore/blob/00127ff054e80ff2e0127fe6f7eff3ebb892ed81/iati_datastore/iatilib/crawler.py#L126-L128

This still isn’t really ideal… But the previous version of iatikit threw a TypeError, which was even more weird.