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

fix for censorship label bug #454

Merged
merged 2 commits into from
Sep 27, 2024
Merged

fix for censorship label bug #454

merged 2 commits into from
Sep 27, 2024

Conversation

rbrtcs1
Copy link
Contributor

@rbrtcs1 rbrtcs1 commented Sep 27, 2024

No description provided.

@tazlin tazlin added the allow-ci A PR with this label will run through CI. label Sep 27, 2024
`dict.get(...)` returns the value of a key if it is set. The default parameter (the second parameter) only returns a default value **if the key does not exist**. Therefore, if the key `gen_metadata` is set in `kwargs`, and is set to `None`, then `kwargs.get("gen_metadata", [])` will return `None` and **not** an empty list (`[]`).
Copy link
Member

@tazlin tazlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bug fixed in my commit was already present before the changes proposed by @rbrtcs1. The bug of gen_metadata being None (and throwing an exception) can be seen in the most recent action runs on main. I am unclear how it isn't causing a problem in production right now considering it crashes the testing.

@tazlin tazlin requested a review from db0 September 27, 2024 12:22
@db0 db0 merged commit 73a88ab into Haidra-Org:main Sep 27, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
allow-ci A PR with this label will run through CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants