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
1 changed files with 6 additions and 2 deletions

View File

@ -37,10 +37,14 @@ if __name__ == "__main__":
service = Service() service = Service()
try: try:
abort = False
if DELAY and xbmc.Monitor().waitForAbort(DELAY): 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 # Start the service
if abort == False:
service.service_entry_point() service.service_entry_point()
except Exception as error: except Exception as error:
if not (hasattr(error, 'quiet') and error.quiet): if not (hasattr(error, 'quiet') and error.quiet):
ga = GoogleAnalytics() ga = GoogleAnalytics()