From ea5ac3748a4af5f08fb1c0737433061d8db215c6 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 25 Jul 2016 03:08:45 -0500 Subject: [PATCH] Log exception before dialog Using logging module, it won't prevent the dialog from displaying. --- resources/lib/librarysync.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 4c7ff088..2c260dad 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -901,14 +901,13 @@ class LibrarySync(threading.Thread): self.run_internal() except Exception as e: window('emby_dbScan', clear=True) + log.exception(e) xbmcgui.Dialog().ok( heading=lang(29999), line1=( "Library sync thread has exited! " "You should restart Kodi now. " "Please report this on the forum.")) - log.exception(e) - raise def run_internal(self):