Update README.md

Refactoring about try-catch block