adding error handling for conversion
Merge pull request #4 from ethan-nelson/master

adding error handling for conversion