This looks wrong, the try and except clauses are identical.