• Jonah Bishop's avatar
    Change percent_complete rescue value from 100 to 0 · 8b92946b
    Jonah Bishop authored
    The percent_complete method returns a value of 100 when a
    ZeroDivisionError occurs. That seems like a very strange default for an
    error case, and results in a bug when a milestone has no corresponding
    issues (new, empty milestones show 100% completion). This commit changes
    the rescue value to 0, and subsequently fixes #1656, which reported this
    problem.
    8b92946b