From a4fd3eabf7d3a89cb76f0e8adab94595633d5a1c Mon Sep 17 00:00:00 2001 From: gutosie Date: Tue, 9 Dec 2025 19:02:18 +0200 Subject: [PATCH] Update plugin.py --- NeoBoot/plugin.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/NeoBoot/plugin.py b/NeoBoot/plugin.py index b58fa0b..bf63b62 100644 --- a/NeoBoot/plugin.py +++ b/NeoBoot/plugin.py @@ -294,16 +294,15 @@ class NeoBootImageChoose(Screen): self.session.open(MessageBox, mess, MessageBox.TYPE_INFO) else: if not fileExists('/usr/lib/python2.7'): - try: if fileExists('/usr/lib/enigma2/python/Plugins/PLi'): from Plugins.Extensions.NeoBoot.files.i_neo import SelectImage self.session.open(SelectImage) - else: + elif not fileExists('/usr/lib/enigma2/python/Plugins/PLi'): from Plugins.Extensions.NeoBoot.files.i_neo import ImageManager self.session.open(ImageManager) - except: - mess = _('Plug installation lost.The plugin doesnt work on python 3 yet. Please try again later.') - self.session.open(MessageBox, mess, MessageBox.TYPE_INFO) + else: + mess = _('Plug installation lost.The plugin doesnt work on python 3 yet. Please try again later.') + self.session.open(MessageBox, mess, MessageBox.TYPE_INFO) elif not os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/ImageDownloader/download.py'): message = _('Plugin ImageDownloader not installed!\nInstall plugin to download new image? \and---Continue ?---') ybox = self.session.openWithCallback(self.InstallImageDownloader, MessageBox, message, MessageBox.TYPE_YESNO)