small fix on try except