removed unnecessary try/except block