Executes function, if error returns False, else True

    :param func: function to call
    :return: True iff ok, else False

def true_false_returns(func):
    """Executes function, if error returns False, else True

    :param func: function to call
    :return: True iff ok, else False
    """

    @functools.wraps(func)
    def _execute(*args, **kwargs):
        """Executes function, if error returns False, else True

        :param args: args of function
        :param kwargs: extra args of function
        :param *args: args
        :param **kwargs: extra args
        :return: True iff ok, else False
        """

        try:
            func(*args, **kwargs)
            return True
        except:
            return False

    return _execute