From 4e7523246084e453f3fcf2e66943e9b0941a9338 Mon Sep 17 00:00:00 2001 From: mac12m99 <10120390+mac12m99@users.noreply.github.com> Date: Fri, 23 Apr 2021 23:28:00 +0200 Subject: [PATCH] ricerca globale: aggiornamento gui in try-except --- specials/globalsearch.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/specials/globalsearch.py b/specials/globalsearch.py index 324313c8..b968513a 100644 --- a/specials/globalsearch.py +++ b/specials/globalsearch.py @@ -348,11 +348,12 @@ class SearchWindow(xbmcgui.WindowXML): if self.item.mode != 'all' and not valid and self.item.infoLabels.get('originaltitle'): logger.debug('retring with original title on channel ' + channel) dummy, valid, dummy = search(self.item.infoLabels.get('originaltitle')) - except: - pass - self.count += 1 - return self.update(channel, valid, other if other else results) + self.count += 1 + return self.update(channel, valid, other if other else results) + except: + import traceback + logger.error(traceback.format_exc()) def makeItem(self, url): item = Item().fromurl(url)