Fix OSError on resetting the database

This commit is contained in:
croneter 2018-12-02 17:46:35 +01:00
parent d198808cfc
commit 1864adf151

View file

@ -90,7 +90,10 @@ def reset_cached_images():
'Video', 'plex')
for path in paths:
new_path = path_ops.translate_path('special://thumbnails/%s' % path)
try:
path_ops.makedirs(path_ops.encode_path(new_path))
except OSError:
pass
with KodiTextureDB() as kodidb:
for row in kodidb.cursor.execute('SELECT tbl_name FROM sqlite_master WHERE type=?',
('table', )):