mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Log exception before dialog
Using logging module, it won't prevent the dialog from displaying.
This commit is contained in:
parent
1f31085fc3
commit
ea5ac3748a
1 changed files with 1 additions and 2 deletions
|
@ -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):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue