Skip to content

Commit

Permalink
Add finally statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Wemmy0 committed Feb 22, 2024
1 parent b917d00 commit 10a5c68
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 10a5c68

Please sign in to comment.