From 7e064d56b3b1fc640f3aff218840f537c8119e64 Mon Sep 17 00:00:00 2001 From: Fraxinas Date: Wed, 7 Oct 2009 00:49:18 +0200 Subject: [PATCH] don't crash upon red key while downloading feed list, exit instead --- lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py b/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py index a1522ddb..6463f179 100644 --- a/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py +++ b/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py @@ -653,11 +653,11 @@ class NFIDownload(Screen): self.session.open(MessageBox, _("To update your Dreambox firmware, please follow these steps:\n1) Turn off your box with the rear power switch and plug in the bootable USB stick.\n2) Turn mains back on and hold the DOWN button on the front panel pressed for 10 seconds.\n3) Wait for bootup and follow instructions of the wizard."), type = MessageBox.TYPE_INFO) def closeCB(self): - if self.download: + try: self.download.stop() #self.nfi_failed(None, "Cancelled by user request") self.downloading(False) - else: + except AttributeError: self.close() def main(session, **kwargs): -- 2.30.2