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 import emby_db
from helper.utils import delete_folder from helper.utils import delete_folder
from helper import _, settings, window, dialog 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): class Database(object):

View file

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