c31 try except fix