Fix cache crash with one entry with empty value

master
pictuga 2013-05-05 15:32:05 +02:00
parent e518f2cced
commit b34ecb8ad3
1 changed files with 2 additions and 2 deletions

View File

@ -105,9 +105,9 @@ class Cache:
self._cache = {} # new things to put in cache self._cache = {} # new things to put in cache
if not self._new: if not self._new:
data = open(self._file).read().strip().split("\n") data = open(self._file).read().split("\n")[1:]
for line in data: for line in data:
key, bdata = line.split("\t") key, bdata = line.split("\t", 1)
self._cached[key] = bdata self._cached[key] = bdata
log(str(hash(self._key))) log(str(hash(self._key)))