def get_suppressing_callable(func, *exceptions):
    """Return callable which suppresses given exceptions.

    Parameters
    ==========
    func (callable object)
        callable to be wrapped in the function which
        ignores arguments when called.
    exceptions (instance(s) of Exception to be suppressed)
        exceptions to be suppressed.
    """

    @wraps(func)
    def execute(*args, **kwargs):
        """Execute func supressing exceptions."""
        with suppress(*exceptions):
            return func(*args, **kwargs)

    return execute
Return callable which suppresses given exceptions.

    Parameters
    ==========
    func (callable object)
        callable to be wrapped in the function which
        ignores arguments when called.
    exceptions (instance(s) of Exception to be suppressed)
        exceptions to be suppressed.
    
nodezator/ourstdlibs/behaviour.py