Skip to main content

A package for with block that ignores exceptions

Project description

WithNoException

Python with block that ignores exceptions

Usage

from no_exception import NoException


def no_exception():
    with NoException():
        raise Exception()
    print("Hi")


def exception():
    raise Exception()
    print("Hi")


no_exception()  # Hi
exception()  # Exception is raised

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

no_exception-1.0.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

no_exception-1.0.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file no_exception-1.0.0.tar.gz.

File metadata

  • Download URL: no_exception-1.0.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for no_exception-1.0.0.tar.gz
Algorithm Hash digest
SHA256 70721e7d68ca85041702e985ce232959f4d45165559017d9e41116cd728c593e
MD5 eff0337fbbd64e52920f19b20d545861
BLAKE2b-256 7d3989ee2f2dd2969ab3252232e19554deec125747aa216d2ddcd790a53d7685

See more details on using hashes here.

File details

Details for the file no_exception-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for no_exception-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5e4dfe656c318f8d27e6bff1b2ec907094dd8b28929209aec647062870006f9
MD5 9bbdeb7bd1a53332e4550bc199278014
BLAKE2b-256 49e6acf75479fbbe79660f64b95154a10aeec23b28210f37af985aa238a6c74e

See more details on using hashes here.

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