Shouldn't this be:

TypeError as te