ValueError is my usual fallback but I think IOError would be appropriate in this case.