summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2012-05-30 16:45:29 +0200
committerMarcel Hellkamp <marc@gsites.de>2012-05-30 16:46:07 +0200
commit59434bc9710f61eea50f0e574e649556b7a46ed1 (patch)
treed1d22420f64f6c5cd25f8a7585ffee8615951907
parent9b24401605e0470388a65c80a0964cba2bf64caf (diff)
downloadbottle-59434bc9710f61eea50f0e574e649556b7a46ed1.tar.gz
fix: Removed limit from all traceback.format_exc() calls to display full traceback.
Thanks e1ch1 (IRC)
-rw-r--r--bottle.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bottle.py b/bottle.py
index 6015d8f..fbc19a2 100644
--- a/bottle.py
+++ b/bottle.py
@@ -790,7 +790,7 @@ class Bottle(object):
raise
except Exception:
if not self.catchall: raise
- stacktrace = format_exc(10)
+ stacktrace = format_exc()
environ['wsgi.errors'].write(stacktrace)
return HTTPError(500, "Internal Server Error", _e(), stacktrace)
@@ -849,7 +849,7 @@ class Bottle(object):
raise
except Exception:
if not self.catchall: raise
- first = HTTPError(500, 'Unhandled exception', _e(), format_exc(10))
+ first = HTTPError(500, 'Unhandled exception', _e(), format_exc())
# These are the inner types allowed in iterator or generator objects.
if isinstance(first, HTTPResponse):
@@ -884,7 +884,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()))
environ['wsgi.errors'].write(err)
headers = [('Content-Type', 'text/html; charset=UTF-8')]
start_response('500 INTERNAL SERVER ERROR', headers)