import contextlib


def silence(error=Exception):
    """Wrapper for contextlib.suppress(). Call using a *with* statement!

    Examples:
        with supress():
            2.shape
    """
    return contextlib.suppress(error)