from typing import Callable


def maybe_resolve_callable(v):
    """Return v if it's not a Callable, else call the value to resolve it.

    :param v: maybe a Callable
    :returns: v or v() if v isinstance(Callable)
    :raises: Exception if the call raises an exception
    """
    if isinstance(v, Callable):
        return v()
    return v