fix init code for db
This commit is contained in:
parent
ad473adec9
commit
788c88595c
1 changed files with 1 additions and 1 deletions
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue