changed try catch
Merge pull request #3 from Gegga87/master

changed try catch