Catching exceptions is half the story. The other half is raising them yourself, when your function is given something it cannot work with. A function that refuses bad input loudly is far easier to use than one that quietly returns nonsense.
More lessons in Complete Python Programming