summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2011-12-22 16:09:40 +0100
committerMarcel Hellkamp <marc@gsites.de>2011-12-22 16:09:40 +0100
commit4b3403389d26cba1ad33d758a4a26dc659f18b80 (patch)
tree73e7a4be6b2744e7fb07d13865b775367066dfe0
parentad1454ca3313e9becbe827b6404b8c32ec8b825b (diff)
downloadbottle-4b3403389d26cba1ad33d758a4a26dc659f18b80.tar.gz
fix #268: Bug in backported code (NameError: _e)
Thanks to Bender Rodriges and John R. Isidore
-rwxr-xr-xbottle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bottle.py b/bottle.py
index 5dc6049..f9c017b 100755
--- a/bottle.py
+++ b/bottle.py
@@ -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)