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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file know_your_exceptions-0.3.tar.gz.
File metadata
- Download URL: know_your_exceptions-0.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b77ce20f9588e5c42baec741d9c1ef3c5c5b364a42d145f710bd5617b90c71cc
|
|
| MD5 |
692199f2a5e065dcfd9186ff99471a90
|
|
| BLAKE2b-256 |
c81235e622d9792e22981e2621de4e4b7c51c18f3bb6be075f748ce1752779f2
|
File details
Details for the file know_your_exceptions-0.3-py3-none-any.whl.
File metadata
- Download URL: know_your_exceptions-0.3-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04041221973910854ea3640bce6693e054fb2031ef87fadce55d6daab4cd55e4
|
|
| MD5 |
8a4c9541c9f76943cd8910d66bff3e6a
|
|
| BLAKE2b-256 |
49958b925fa0374d159d93258dbb23240ea610f423d24405c5177ef56ef987a5
|