Identitfy the exact exception class
Project description
Introduction
Exception handling is one of the most cruicial part of the coding practices. And it is always a good idea to handle the specific exception using try-except rather than just handling the Exception class in Python. This package can help you achieve the same.
Steps
- Install the package using
pip install know-your-exceptions
- Import the decorator in your file using
from know_your_exceptions.decorators import exc_finder
- Add this decorator over your function, and make sure that you function does not have any try-except block (so that this package can suggest you accurate exception handling method)
Example Response
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for know_your_exceptions-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04041221973910854ea3640bce6693e054fb2031ef87fadce55d6daab4cd55e4 |
|
MD5 | 8a4c9541c9f76943cd8910d66bff3e6a |
|
BLAKE2b-256 | 49958b925fa0374d159d93258dbb23240ea610f423d24405c5177ef56ef987a5 |