mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-07 01:48:47 +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
|
@ -15,6 +15,7 @@ import downloadutils
|
|||
import read_embyserver as embyserver
|
||||
from ga_client import GoogleAnalytics
|
||||
from utils import window, settings, dialog, language as lang, should_stop
|
||||
import internal_exceptions
|
||||
|
||||
##################################################################################################
|
||||
|
||||
|
@ -29,6 +30,9 @@ def catch_except(errors=(Exception, ), default_value=False):
|
|||
def wrapper(*args, **kwargs):
|
||||
try:
|
||||
return func(*args, **kwargs)
|
||||
except internal_exceptions.ExceptionWrapper as error:
|
||||
log.exception(error)
|
||||
raise
|
||||
except sqlite3.Error as error:
|
||||
raise
|
||||
except errors as error:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue