def try_func(func):
    """
    Sandbox to run a function and return its values or any produced error.

    :param func: testing function
    :return: results or Exception
    """
    try:
        return func()
    except Exception as e:
        return e