Remove unnecessary try/except block