fix warnings on try-catch
Merge pull request #47 from mikegagnon/remove_warning_on_catch

fix warnings on try-catch