Skip to main content

Raises' in your source code, all's right with the Stack Overflow

Project description

Raises Stack Overflow

Raises’ in your source code, all’s right with the Stack Overflow

Install

Please use pip to install raises

$ pip install raises

How to use?

Is easy to use raises in your daily work, to help you find out raises error’s answer on Stack Overflow, simply import raises to your code, then done!

import raises  # To the top of your source code

Example

For example, if we type in int("") to REPL, it will raise a ValueError:

>>> import raises
>>> int("")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: ''

You should now saw a new tab in your browser, to find out the answer on Stack Overflow!

API

  • raises.enable()

To enable the raises function

  • raises.disable()

To disable the raises function

  • raises.raiser

The core function of raises, it was the sys.excepthook replacer to handle every exceptio, and to open a new browser with tabs.

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

raises-0.2.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

raises-0.2-py2.py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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