def get_current_issue(current_branch=None):
    """Get the issue associated with the current branch.

    Args:
        current_branch: String; containing the name of a branch. Defaults to
            None and in this case is replaced by a call to get_current_branch.

    Returns:
        Integer; the current issue.

    Raises:
        GitRvException: If there is no issue set in the current branch.
    """
    current_branch = current_branch or get_current_branch()

    rietveld_info = RietveldInfo.from_branch(branch_name=current_branch)
    if (rietveld_info.review_info is None or
        rietveld_info.review_info.issue is None):
        raise GitRvException((current_branch,) % 'No issue set in branch %r.')

    return rietveld_info.review_info.issue
dataset/ETHPy150Open googlearchive/git-rv/utils.py/get_current_issue/swapped operands of `%`