small modif try/catch