I\'ve got a pretty good understanding of python\'s try-except clause, but I\'m encountering problems when trying to put it inside of a function.
>>>
This has nothing to do with your exception handler. The error you are seeing is because "foo" is not defined anywhere.