From dee81281310bfa3dd164defa05c0c541a70ccfcc Mon Sep 17 00:00:00 2001 From: shaun Date: Sun, 15 Jan 2017 10:46:38 +1100 Subject: [PATCH] dont throw if delay interupted, it is a normal occurance --- service.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/service.py b/service.py index 17c303c4..f5f03563 100644 --- a/service.py +++ b/service.py @@ -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 - service.service_entry_point() + if abort == False: + service.service_entry_point() + except Exception as error: if not (hasattr(error, 'quiet') and error.quiet): ga = GoogleAnalytics()