def no_exception(function):
    """ A decorator that wraps a function and ignores all exceptions """
    def wrapper(*args, **kwargs):
        try:
            # print(args)
            return function(*args, **kwargs)
        except Exception as e:
            # do nothing
            print(str(e))

    return wrapper