mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-12-13 10:33:16 +00:00
Remove some generic exceptions
This commit is contained in:
parent
bf372791ab
commit
803081f65a
12 changed files with 43 additions and 33 deletions
|
|
@ -12,6 +12,7 @@ from kodi_six.utils import py2_encode
|
|||
from database import jellyfin_db, queries as QUEM
|
||||
from helper import api, stop, validate, library_check, jellyfin_item, values, Local
|
||||
from helper import LazyLogger
|
||||
from helper.exceptions import PathValidationException
|
||||
|
||||
from .obj import Objects
|
||||
from .kodi import MusicVideos as KodiDb, queries as QU
|
||||
|
|
@ -162,7 +163,7 @@ class MusicVideos(KodiDb):
|
|||
if self.direct_path:
|
||||
|
||||
if not validate(obj['Path']):
|
||||
raise Exception("Failed to validate path. User stopped.")
|
||||
raise PathValidationException("Failed to validate path. User stopped.")
|
||||
|
||||
obj['Path'] = obj['Path'].replace(obj['Filename'], "")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue