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)