Catch exception
Merge pull request #56 from Alarmfifa/catch_exception

Catch InvalidArgumentException