replace old syntaxe excpet error ... , by except error as ...