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.
This commit is contained in:
angelblue05 2018-10-03 18:50:11 -05:00
parent 40ac4a0e8c
commit 313585efff

View file

@ -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):