Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle upstream issue milestone of None #283

Merged
merged 2 commits into from
Jan 30, 2025
Merged

Handle upstream issue milestone of None #283

merged 2 commits into from
Jan 30, 2025

Conversation

webbnh
Copy link
Collaborator

@webbnh webbnh commented Jan 30, 2025

Looking at the crash from 2025-01-27 03:02:13,506, it appears that our defense against missing milestone values in upstream issues is not quite sufficient: apparently, the "milestone" key can be present in the upstream issue with a value of None, so the trick of specifying a default value in the get() call is not sufficient.

This change applies the default both in the case where the key does not exist and the case where the corresponding value is false-y (i.e., None or any "empty" value).

This change also includes a fix for a Black objection. Black recently released v25 which the CI's Tox now uses, and with it came a new demand.

@ralphbean ralphbean merged commit 3767409 into main Jan 30, 2025
6 checks passed
@ralphbean ralphbean deleted the none-milestone branch January 30, 2025 18:45
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.

2 participants