diff --git a/src/Export.py b/src/Export.py index 7caddb8..6215eca 100644 --- a/src/Export.py +++ b/src/Export.py @@ -48,5 +48,6 @@ def finalise(data: list, path: str, err: int): dialogue = Gtk.MessageDialog(text="Unable to export file", message_type=Gtk.MessageType.INFO, buttons=Gtk.ButtonsType.OK) - dialogue.connect("response", lambda dialog, *args: dialog.destroy()) - dialogue.present() + finally: + dialogue.connect("response", lambda dialog, *args: dialog.destroy()) + dialogue.present()