Use "catch" instead of "trap" for exceptions.

This is the idiomatic word in the Python world.