Small service adjustment

This commit is contained in:
angelblue05 2018-10-15 06:26:25 -05:00
parent c3fbdf082c
commit 58e02cfbb7
2 changed files with 5 additions and 15 deletions

View file

@ -14,6 +14,7 @@ import xbmcvfs
import emby_db
from helper.utils import delete_folder
from helper import _, settings, window, dialog
from objects import obj
#################################################################################################
@ -21,15 +22,6 @@ LOG = logging.getLogger("EMBY."+__name__)
#################################################################################################
try:
from objects import obj
except Exception as error:
# clear patch
LOG.exception(error)
delete_folder()
dialog("ok", heading="{emby}", line1=_(33155))
xbmc.executebuiltin('RestartApp')
class Database(object):

View file

@ -55,17 +55,13 @@ if __name__ == "__main__":
raise Exception("Aborted during startup delay")
session.service()
break
except Exception as error: # TODO, build exceptions
LOG.exception(error)
session.shutdown()
if 'RestartService' not in error:
LOG.warn("--<<[ service ]")
break
if 'RestartService' in error:
continue
except Exception as error:
''' Issue initializing the service.
@ -74,4 +70,6 @@ if __name__ == "__main__":
break
break
LOG.warn("--<[ service ]")