Please use `TypeError as e` here (and use `Exception as e` in line 563). This brakes build on Python 3: https://travis-ci.org/mitsuhiko/jinja2/jobs/16600505