follow up to 5d7b9c6 - better msg on invalid data

with the new file api, detection of invalid files happens on
python side of things