Skip to content

Correct bug for Scenario init with bad descriptor#440

Merged
danielolsen merged 2 commits intodevelopfrom
daniel/missing_scenario
Apr 5, 2021
Merged

Correct bug for Scenario init with bad descriptor#440
danielolsen merged 2 commits intodevelopfrom
daniel/missing_scenario

Conversation

@danielolsen
Copy link
Copy Markdown
Contributor

Purpose

Add a test to check a bug for when we try to get a Scenario that isn't in the ScenarioList, and then fix the bug. This bug was introduced in #420.

What the code is doing

We raise a ValueError before a RecursionError would be created (the previous bug).

Testing

Unit test finds the error before (or crashed python), and confirms that the fix works.

Time estimate

5 minutes.

@danielolsen danielolsen self-assigned this Apr 5, 2021
Copy link
Copy Markdown
Collaborator

@BainanXia BainanXia left a comment

Choose a reason for hiding this comment

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

Looks good.

@danielolsen danielolsen force-pushed the daniel/missing_scenario branch from fa08c7b to 36b0f69 Compare April 5, 2021 19:13
Copy link
Copy Markdown
Collaborator

@rouille rouille left a comment

Choose a reason for hiding this comment

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

Thanks

@danielolsen danielolsen merged commit 5a1dbbf into develop Apr 5, 2021
@danielolsen danielolsen deleted the daniel/missing_scenario branch April 5, 2021 21:07
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.

4 participants