From 1864adf151a7bf3798f788043ed844c34c0d3b27 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 2 Dec 2018 17:46:35 +0100 Subject: [PATCH] Fix OSError on resetting the database --- resources/lib/kodi_db/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/lib/kodi_db/__init__.py b/resources/lib/kodi_db/__init__.py index f3e23919..6ec79746 100644 --- a/resources/lib/kodi_db/__init__.py +++ b/resources/lib/kodi_db/__init__.py @@ -90,7 +90,10 @@ def reset_cached_images(): 'Video', 'plex') for path in paths: new_path = path_ops.translate_path('special://thumbnails/%s' % path) - path_ops.makedirs(path_ops.encode_path(new_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', )):