error handling bug fix
Merge pull request #5 from snarfed/error_handling

error handling bug fix