mirror of
https://github.com/krateng/maloja.git
synced 2025-06-17 07:41:02 +03:00
Fixed small bug
This commit is contained in:
parent
f0010fd6bb
commit
8e37a902e5
@ -281,12 +281,19 @@ def loadCache():
|
||||
fl.close()
|
||||
|
||||
# remove corrupt caching from previous versions
|
||||
toremove = []
|
||||
for k in cachedTracks:
|
||||
if cachedTracks[k] == "":
|
||||
toremove.append(k)
|
||||
for k in toremove:
|
||||
del cachedTracks[k]
|
||||
log("Removed invalid cache key: " + str(k))
|
||||
|
||||
toremove = []
|
||||
for k in cachedArtists:
|
||||
if cachedArtists[k] == "":
|
||||
toremove.append(k)
|
||||
for k in toremove:
|
||||
del cachedArtists[k]
|
||||
log("Removed invalid cache key: " + str(k))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user