added a try catcg
Merge pull request #169 from lexoyo/develop

added a try catch