Use 2.6+ "except ... as ..." syntax