diff options
author | Marcel Hellkamp <marc@gsites.de> | 2011-12-22 16:09:40 +0100 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2011-12-22 16:09:40 +0100 |
commit | 4b3403389d26cba1ad33d758a4a26dc659f18b80 (patch) | |
tree | 73e7a4be6b2744e7fb07d13865b775367066dfe0 | |
parent | ad1454ca3313e9becbe827b6404b8c32ec8b825b (diff) | |
download | bottle-4b3403389d26cba1ad33d758a4a26dc659f18b80.tar.gz |
fix #268: Bug in backported code (NameError: _e)
Thanks to Bender Rodriges and John R. Isidore
-rwxr-xr-x | bottle.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -838,7 +838,7 @@ class Bottle(object): if DEBUG: err += '<h2>Error:</h2>\n<pre>\n%s\n</pre>\n' \ '<h2>Traceback:</h2>\n<pre>\n%s\n</pre>\n' \ - % (html_escape(repr(_e())), html_escape(format_exc(10))) + % (html_escape(repr(e)), html_escape(format_exc(10))) environ['wsgi.errors'].write(err) headers = [('Content-Type', 'text/html; charset=UTF-8')] start_response('500 INTERNAL SERVER ERROR', headers) |