{% set type, value, tback = sys.exc_info() %} {% autoescape None %} HTTP Status {{ status_code }} » Tornado v{{ tornado.version }}

HTTP Status {{ status_code }}

{% if exception %} {% set traceback_list = traceback.extract_tb(tback) %}

Application raised {{ exception.__class__.__name__ }}: {{ exception }}.

{% set filepath, line, method, code = traceback_list[-1] %}

on line {{ line }} of {{ method }} in {{ os.path.basename(filepath) }}

File: {{ filepath }}
{% set extension = os.path.splitext(filepath)[1][1:] %} {% if extension in ['py', 'html', 'htm'] %}
                        {{ escape(get_snippet(filepath, line, 10)) }}
                        
{% else %}

Cannot load file, type not supported.

{% end %}

Full Traceback

click each row to view full detail and source code snippet.
{% for filepath, line, method, code in traceback_list %}

on line {{ line }} of {{ method }} in {{ os.path.basename(filepath) }}

File: {{ filepath }}
{% set extension = os.path.splitext(filepath)[1][1:] %} {% if extension in ['py', 'html', 'htm'] %}
                                {{ escape(get_snippet(filepath, line, 10)) }}
                                
{% else %}

Cannot load file, type not supported.

{% end %}

{% end %}

Request Headers

{% for hk, hv in handler.request.headers.iteritems() %} {% end %}
{{ hk }} {{ hv }}


Response Headers

{% for hk, hv in handler._headers.iteritems() %} {% end %}
{{ hk }} {{ hv }}

{% end %}


Powered by Tornado v{{ tornado.version }} | python {{ sys.version }}