Closed andylolz closed 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).
dataset.raw_xml
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.
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.