Skip to main content

About


def try_except(t: func, ex: Exception = None):
  try:
    result = t()
    return result
  except Exception as e:
    if isinstance(e,ex):
      return e
    elif ex is None:
      return None
    else:
      return False

^^^ This is literally all the code

Release files for try-except 0.0.7

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

Source distribution (sdist)

Source distribution for try-except 0.0.7
File Size Uploaded
try_except-0.0.7.tar.gz 2.3 kB Details

Release files / try_except-0.0.7.tar.gz

Download URL try_except-0.0.7.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d949dbd9556c30118fdd4cfa20f86f38038c605892041b7763f10184abe02334
BLAKE2b-256 checksum
How to use checksums
39212bcbb3768aae07ca1bcea9e6b259c04112322262371cd753e202f2360074
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.0.7 This release

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

2 release files

0.0.2

2 release files

0.0.1

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