Correcting except syntax