All Projects → Eugeny → Catcher

Eugeny / Catcher

Licence: lgpl-3.0
Beautiful tracebacks for Python

Programming Languages

python
139335 projects - #7 most used programming language

Catcher - Beautiful tracebacks

python-catcher module generates rich HTML tracebacks (including source code and locals), submits it to the web and generates a permalink.

Quick use::

import catcher

try:
    launch_important_stuff()
except Exception, e:
    report = catcher.collect(e)
    html = catcher.formatters.HTMLFormatter().format(report, maxdepth=4)
    url = catcher.uploaders.AjentiOrgUploader().upload(html)

    print 'Application has crashed. Please submit this link along with the bug report:'
    print url

Example report: http://ajenti.org/catcher/view/7000

Report overview:

.. image:: http://habrastorage.org/storage2/f05/ea4/779/f05ea4779fccf0087fa24a380bd92b45.png

One stack frame with locals:

.. image:: http://habrastorage.org/storage2/4b8/188/5fe/4b81885fe8582d835c557af1d71884b9.png

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].