catch IO errors with ValueError
Merge pull request #42 from alfredodeza/master

Catch I/O Errors on ValueError exception