diff --git a/resources/lib/TextureCache.py b/resources/lib/TextureCache.py index 9fa3868d..df731dc5 100644 --- a/resources/lib/TextureCache.py +++ b/resources/lib/TextureCache.py @@ -82,10 +82,9 @@ class TextureCache(): if result: cursor.execute("DELETE FROM texture WHERE url = ?", (url,)) connection.commit() - cursor.close() else: - cursor.close() self.CacheTexture(url) + cursor.close() def setKodiWebServerDetails(self):