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

Core: Crash less on loading settings with invalid apworlds #4438

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

qwint
Copy link
Collaborator

@qwint qwint commented Jan 6, 2025

What is this fixing or adding?

handle nicer when a single world using settings api fails to load (like duplicate apworlds)

note: i swear the issue was an importerror but i could only get attributeerrors on the getattr() call, maybe we want to check for both?

How was this tested?

added an apworld that uses Settings to both custom_worlds and lib/worlds and saw it not crash on open host.yaml after the change

If this makes graphical changes, please attach screenshots.

…ke duplicate apworlds)

note: i swear the issue was an importerror but i could only get attributeerrors on the getattr() call, maybe we want to check for both?
@github-actions github-actions bot added affects: core Issues/PRs that touch core and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Jan 6, 2025
@qwint qwint changed the title Core: Crass less on loading settings with invalid apworlds Core: Crash less on loading settings with invalid apworlds Jan 6, 2025
@ScipioWright ScipioWright added the is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. label Jan 10, 2025
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. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants