Log exception before dialog

Using logging module, it won't prevent the dialog from displaying.
This commit is contained in:
angelblue05 2016-07-25 03:08:45 -05:00
parent 1f31085fc3
commit ea5ac3748a

View file

@ -901,14 +901,13 @@ class LibrarySync(threading.Thread):
self.run_internal() self.run_internal()
except Exception as e: except Exception as e:
window('emby_dbScan', clear=True) window('emby_dbScan', clear=True)
log.exception(e)
xbmcgui.Dialog().ok( xbmcgui.Dialog().ok(
heading=lang(29999), heading=lang(29999),
line1=( line1=(
"Library sync thread has exited! " "Library sync thread has exited! "
"You should restart Kodi now. " "You should restart Kodi now. "
"Please report this on the forum.")) "Please report this on the forum."))
log.exception(e)
raise
def run_internal(self): def run_internal(self):