Skip to main content

Web Error handling and exception catching

Project description

Introduction

WebError provides WSGI middleware for the debugging and handling of errors inside of WSGI applications.

Usage

There are two primary WSGI middleware components:

weberror.errormiddleware.make_error_middleware

This middleware should be used for production deployed applications and is used to track extra information regarding errors that occur. These error entries can additionally be emailed to a given email address using the error_email option. Example usage:

from weberror.evalexception import make_eval_exception
app = make_eval_exception(app, global_conf)

weberror.evalexception.make_eval_exception

This middleware is used to help debug errors in wsgi applications during development and should not be used in production. Example usage:

from weberror.evalexception import make_eval_exception
app = make_eval_exception(app, global_conf)

WebError Changelog

0.11 (07/21/2015)

  • Remove XSS issues by requiring a CSRF token for relay commands. Patch by Jordan Milne.

0.10.3 (11/9/2010)

  • Don’t require simplejson on Python 2.6

0.10.2 (2/12/2010)

  • Fix bug when displaying UTF-8 type errors.

  • Fix bug when emailing data with UTF-8.

0.10.1 (12/29/2008)

  • Fix view source when __file__ is .pyo or $py.class.

0.10 (12/18/2008)

  • Fix indentation of code lines in the traceback view.

  • Enable syntax highlighting in view source.

  • Fix a case where the response could become unicode; fix the docstring patching when using python -O

0.9.1 (10/28/2008)

  • Python 2.6 compatibility

  • Making main page links more accessible to browsers with no JS on per Pylons Trac ticket #489.

0.9 (07/08/2008)

  • Switched to using Pygments for highlighting.

  • Added better handling of exceptions that don’t cleanly convert to str().

  • Added dependency library listings for XML output.

0.8 (06/12/2008)

  • Added fairly basic pdbcapture system.

  • Fixed errors in unicode handling and exception displaying.

  • Updated JS to use jQuery where applicable. Updated jQuery lib and added jQuery hotkeys plugin.

  • Refactored to a flatter layout.

0.8a (02/27/2008)

  • Fixed error in email due to restructuring of project.

  • Added xml formattor output.

  • Added try/except in case an objects repr throws an exception.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

WebError-0.11.tar.gz (91.5 kB view details)

Uploaded Source

Built Distribution

WebError-0.11-py2-none-any.whl (90.3 kB view details)

Uploaded Python 2

File details

Details for the file WebError-0.11.tar.gz.

File metadata

  • Download URL: WebError-0.11.tar.gz
  • Upload date:
  • Size: 91.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for WebError-0.11.tar.gz
Algorithm Hash digest
SHA256 b9d93480d28439a168098215a499b3789d08fcba3c6d24675d4c1f5e16e196cb
MD5 6e2a017f75b322f37a8edd9d793d1778
BLAKE2b-256 e116949098cba2fef3e7d7491fde650c299a843f769f20c587731f7a40883e53

See more details on using hashes here.

File details

Details for the file WebError-0.11-py2-none-any.whl.

File metadata

File hashes

Hashes for WebError-0.11-py2-none-any.whl
Algorithm Hash digest
SHA256 88c4d56fbd39bdfe803cd68d696b22ac03db14982bb91132b7a5dd55dac8b845
MD5 1bc411581a7143753abe2ee1940a0d0d
BLAKE2b-256 51a0ab900fba48e9d76b090b34254d19d05a3039316de22178c75cfbc4dda6dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page