From 3384124f9cff1387191ad7c567a3448ab2f87b64 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Wed, 2 Dec 2015 16:51:30 -0600 Subject: [PATCH] Adjust delete cached artwork If fails, move on instead. --- resources/lib/TextureCache.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/lib/TextureCache.py b/resources/lib/TextureCache.py index 8172975e..0e1e93db 100644 --- a/resources/lib/TextureCache.py +++ b/resources/lib/TextureCache.py @@ -226,9 +226,11 @@ class TextureCache(): thumbnails = xbmc.translatePath("special://thumbnails/%s" % cachedurl) self.logMsg("Deleting cached thumbnail: %s" % thumbnails, 1) xbmcvfs.delete(thumbnails) - - cursor.execute("DELETE FROM texture WHERE url = ?", (url,)) - connection.commit() + try: + cursor.execute("DELETE FROM texture WHERE url = ?", (url,)) + connection.commit() + except: + self.logMsg("Issue deleting url from cache. Skipping.", 2) finally: cursor.close() \ No newline at end of file