config: Fix type of path passed to cache classes.
This commit is contained in:
parent
620816fe72
commit
cdc748c14f
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ class Configuration:
|
||||||
def _build_cache_loader(self):
|
def _build_cache_loader(self):
|
||||||
kwargs = dict(self.conffile.items('Cache'))
|
kwargs = dict(self.conffile.items('Cache'))
|
||||||
try:
|
try:
|
||||||
kwargs['dir_path'] = kwargs.pop('directory')
|
kwargs['dir_path'] = pathlib.Path(kwargs.pop('directory'))
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
self.cache = cache.CacheWriter(**kwargs)
|
self.cache = cache.CacheWriter(**kwargs)
|
||||||
|
|
Loading…
Reference in a new issue