Skip to main content

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

Metadata

Release files for no-exception 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for no-exception 1.0.0
File Size Uploaded
no_exception-1.0.0.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for no-exception 1.0.0
File Interpreter ABI Platform
no_exception-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 kB

Release files / no_exception-1.0.0.tar.gz

Download URL no_exception-1.0.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
70721e7d68ca85041702e985ce232959f4d45165559017d9e41116cd728c593e
BLAKE2b-256 checksum
How to use checksums
7d3989ee2f2dd2969ab3252232e19554deec125747aa216d2ddcd790a53d7685
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / no_exception-1.0.0-py3-none-any.whl

Download URL no_exception-1.0.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5e4dfe656c318f8d27e6bff1b2ec907094dd8b28929209aec647062870006f9
BLAKE2b-256 checksum
How to use checksums
49e6acf75479fbbe79660f64b95154a10aeec23b28210f37af985aa238a6c74e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.6

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page