Skip to main content

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

  1. Install the package using pip install know-your-exceptions
  2. Import the decorator in your file using from know_your_exceptions.decorators import exc_finder
  3. 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

Example response

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

know_your_exceptions-0.3.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

know_your_exceptions-0.3-py3-none-any.whl (3.7 kB view hashes)

Uploaded 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