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

settings: add default=None to Group.get #2178

Merged

Conversation

black-sliver
Copy link
Member

What is this fixing or adding?

dict.get has default=None, which was missing from Group.get's dict emulation.
This should fix the crash in https://discord.com/channels/731205301247803413/1151196512181833790

How was this tested?

Running mypy, unittests and

>>> from settings import get_settings; get_settings()["soe_options"].get("does not exist") is None
True

This is regular dict behavior/emulation.
@black-sliver black-sliver merged commit f05a9ec into ArchipelagoMW:main Sep 15, 2023
@black-sliver black-sliver deleted the settings_get_default_none branch September 15, 2023 07:18
@ThePhar ThePhar added is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. affects: core Issues/PRs that touch core and may need additional validation. labels Oct 17, 2023
FlySniper pushed a commit to FlySniper/Archipelago that referenced this pull request Nov 14, 2023
This is regular dict behavior/emulation.
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
This is regular dict behavior/emulation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: core Issues/PRs that touch core and may need additional validation. is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants