diff options
author | Marcel Hellkamp <marc@gsites.de> | 2012-05-30 16:45:29 +0200 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2012-05-30 16:46:07 +0200 |
commit | 59434bc9710f61eea50f0e574e649556b7a46ed1 (patch) | |
tree | d1d22420f64f6c5cd25f8a7585ffee8615951907 | |
parent | 9b24401605e0470388a65c80a0964cba2bf64caf (diff) | |
download | bottle-59434bc9710f61eea50f0e574e649556b7a46ed1.tar.gz |
fix: Removed limit from all traceback.format_exc() calls to display full traceback.
Thanks e1ch1 (IRC)
-rw-r--r-- | bottle.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |