Remove unnecessary try-catch block