I don't understand why try-except is used here. It simply does not make sense.