Use type(xxx) in stead of except TypeError.
2 files changed