dont throw if delay interupted, it is a normal occurance

This commit is contained in:
shaun 2017-01-15 10:46:38 +11:00
parent ce46fb7015
commit dee8128131

View file

@ -37,10 +37,14 @@ if __name__ == "__main__":
service = Service()
try:
abort = False
if DELAY and xbmc.Monitor().waitForAbort(DELAY):
raise RuntimeError("Abort event while waiting to start Emby for kodi")
log.info("Abort event while waiting to start Emby for kodi")
abort = True
# Start the service
if abort == False:
service.service_entry_point()
except Exception as error:
if not (hasattr(error, 'quiet') and error.quiet):
ga = GoogleAnalytics()