diff --git a/src/gpodder/gtkui/frmntl/episodeactions.py b/src/gpodder/gtkui/frmntl/episodeactions.py index 778392d9..60a422aa 100644 --- a/src/gpodder/gtkui/frmntl/episodeactions.py +++ b/src/gpodder/gtkui/frmntl/episodeactions.py @@ -253,7 +253,11 @@ class gPodderEpisodeActions(BuilderWidget): self.action_delete.set_sensitive(not self.new_keep_value) def on_delete_event(self, widget, event=None): - self.remove_download_task_monitor(self.download_task_monitor) + try: + self.remove_download_task_monitor(self.download_task_monitor) + except KeyError: + pass + self.download_task_monitor = None self.main_window.hide()