human
Give me a the Python code you requested given the following:
Complete the below
def ignore_exception(exception_class):

    ''''A decorator that ignores `exception_class` exceptions'
    '''
assistant
#Here is the Python code you requested.
    def _decorator(func):
        def newfunc(*args, **kwds):
            try:
                return func(*args, **kwds)
            except exception_class:
                pass
        return newfunc
    return _decorator