Skip to content

Validate gh-issue is int before checking range, and that gh-issue or bpo exists#35

Merged
hugovk merged 6 commits intopython:mainfrom
hugovk:test_parse
Nov 10, 2024
Merged

Validate gh-issue is int before checking range, and that gh-issue or bpo exists#35
hugovk merged 6 commits intopython:mainfrom
hugovk:test_parse

Conversation

@hugovk
Copy link
Member

@hugovk hugovk commented Nov 9, 2024

Fixes #34.

For the first part:

We were checking gh-issue is in the correct range (32426 or higher) before checking it's an int, and so getting a general ValueError: invalid literal for int() with base 10: '' instead of a better Blurb one: Invalid GitHub issue number! ('').

For the second part:

Ensure one of gh-issue or bpo exists in the metadata.

Also add more unit tests for Blurb.parse().

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[1.3.0] blurb crashes both with absent or empty GitHub issue (and should help with how to appraoch that case)

2 participants