napari / napari-animation

A napari plugin for making animations
https://napari.github.io/napari-animation/
Other
74 stars 27 forks source link

Bugfix: Return empty dict when SaveDialog is canceled #191

Closed psobolewskiPhD closed 7 months ago

psobolewskiPhD commented 7 months ago

Closes: https://github.com/napari/napari-animation/issues/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.