fix init code for db

This commit is contained in:
j 2009-11-20 12:59:24 +01:00
parent ad473adec9
commit 788c88595c

View file

@ -110,7 +110,7 @@ def _getCacheBase():
def _getCacheDB():
path = _getCacheBase()
if not os.path.exists(os.path.dirname(path)):
os.makedirs(os.path.exists(os.path.dirname(path)))
os.makedirs(os.path.dirname(path))
return os.path.join(path, "cache.sqlite")
def _connectDb():