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

Bugfix: Return empty dict when SaveDialog is canceled #191

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

psobolewskiPhD
Copy link
Member

Closes: #183
Currently when the SaveDialog is canceled or exited without saving then the return is "" -- an empty string. This doesn't have a get method, so it results in a Traceback.

In this PR, I ensure a dict is always returned and in the case of exiting without saving it's just empty.

@psobolewskiPhD psobolewskiPhD added the ready-to-merge This PR is approved and can be merged after 24 hour `cooldown` label Nov 28, 2023
@psobolewskiPhD psobolewskiPhD merged commit e835f3c into napari:main Nov 30, 2023
@psobolewskiPhD psobolewskiPhD removed the ready-to-merge This PR is approved and can be merged after 24 hour `cooldown` label Nov 30, 2023
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.

AttributeError when trying to save an animation
2 participants