Why not put all three statements (the split and the two float conversions) in a single 'try', since you're catching ValueError in both cases?