From 313585efff66a4ca436ab8fad137771931a974bd Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Wed, 3 Oct 2018 18:50:11 -0500 Subject: [PATCH] Prevent error from creating nodes The addon automatically creates nodes at startup with prefilled information. Prevent errors in the event something goes wrong. It will fix itself down the line, after user has logged in. --- resources/lib/entrypoint/service.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/resources/lib/entrypoint/service.py b/resources/lib/entrypoint/service.py index 8a66d8e9..66ff2919 100644 --- a/resources/lib/entrypoint/service.py +++ b/resources/lib/entrypoint/service.py @@ -70,14 +70,17 @@ class Service(xbmc.Monitor): LOG.warn("Log Level: %s", self.settings['log_level']) self.check_version() - verify_kodi_defaults() - Views().get_nodes() - window('emby.connected.bool', True) - xbmc.Monitor.__init__(self) + try: + Views().get_nodes() + except Exception as error: + LOG.error(error) + + window('emby.connected.bool', True) self.check_update() settings('groupedSets.bool', objects.utils.get_grouped_set()) + xbmc.Monitor.__init__(self) def service(self):