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 bug in _viewer_item_by_id #504

Merged
merged 2 commits into from
Apr 9, 2021

Conversation

astrofrog
Copy link
Collaborator

This fixes a bug in _viewer_item_by_id: if multiple stack items were present and the first had children but not the requested viewer, then find_viewer_item would incorrectly return None instead of checking the next stack item. I've also improved an error message related to finding viewers.

If multiple stack items were present and the first had children but not the requested viewer, then find_viewer_item would incorrectly return None instead of checking the next stack item.
Copy link
Contributor

@javerbukh javerbukh 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!

Copy link
Collaborator

@rosteen rosteen 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, thanks!

@rosteen rosteen merged commit eb40203 into spacetelescope:main Apr 9, 2021
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.

3 participants