This is a lib for custom exceptions
Project description
Extra Exceptions
Extra Exceptions - library for those who lack the usual python exceptions.
Documentation will be soon...
To install pip install extraexceptions
To import import extraexceptions
or from extraexceptons import *
Library give a new exceptions:
Logical Fallacies - new 74 excepts.
Cognitive Biases - new 56 excepts.
Don't Stop Code Decorator:
Library can catch exceptions and output only text with error, but if it will be, for example:
from extraexceptions import *
@ignore_exc_decorator
def div(x, y):
return x / y
print(div(5, 0))
you will receive:
Exception>>> division by zero
None
None - because x/y return traceback, but decorator catch his and function cant assign a value to return.
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
Close
Hashes for extraexceptions-0.0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55b768903bf3e91f819ce33d06e1baa70c94a76fc165568752224c169c38862d |
|
MD5 | 5dacd9326b4fbb95a6aa60ed78dd9a3b |
|
BLAKE2b-256 | 6622ccc36f6f409734b458cf74b71494ddace834a8132c02c0936f615926b64b |