-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Release.from_tags() more predictable
If Release.from_tags() was called with a tag not associated with any release, it would raise KeyError (unless an earlier tag in the list was found first.) This was unexpected from the documentation - and was handled by one caller but not others. Change it to return None in this case - this was handled by all callers. Signed-off-by: Owen W. Taylor <otaylor@fishsoup.net>
- Loading branch information
1 parent
0ba628a
commit 78dd4aa
Showing
3 changed files
with
3 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters