wrapt_timeout_decorator
wrapt_timeout_decorator copied to clipboard
make own Exception derived from BaseException
the TimeoutError can be caught by the decorated function, because it is derived from Exception / OSError. Better to use our own Exception derived from BaseException