mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-08-28 02:11:35 +00:00
use an exception class to surface exceptions that we dont want to log to the metrics logging system
This commit is contained in:
parent
84165e6e64
commit
aef40c4e8a
7 changed files with 35 additions and 7 deletions
|
@ -24,6 +24,7 @@ import views
|
|||
from objects import Movies, MusicVideos, TVShows, Music
|
||||
from utils import window, settings, language as lang, should_stop
|
||||
from ga_client import GoogleAnalytics
|
||||
import internal_exceptions
|
||||
|
||||
##################################################################################################
|
||||
|
||||
|
@ -618,7 +619,8 @@ class LibrarySync(threading.Thread):
|
|||
except Exception as e:
|
||||
ga = GoogleAnalytics()
|
||||
errStrings = ga.formatException()
|
||||
ga.sendEventData("Exception", errStrings[0], errStrings[1])
|
||||
if type(e) != internal_exceptions.ExceptionWrapper:
|
||||
ga.sendEventData("Exception", errStrings[0], errStrings[1])
|
||||
window('emby_dbScan', clear=True)
|
||||
log.exception(e)
|
||||
xbmcgui.Dialog().ok(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue