def ignore_error(func, e=Exception):
    """Wraps the function with a handler to ignore specified exceptions."""
    def inner(*args, **kwargs):
        try: return func(*args, **kwargs)
        except e: pass
    return inner