Changeset - cdc748c14f06
[Not reviewed]
0 1 0
Brett Smith - 7 years ago 2017-05-17 16:52:02
brettcsmith@brettcsmith.org
config: Fix type of path passed to cache classes.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
oxrlib/config.py
Show inline comments
...
 
@@ -115,25 +115,25 @@ class Configuration:
 
                decimal.Decimal, self.args.remainder[0])
 
            self.args.from_currency = self._convert_or_error(
 
                currency_code, self.args.remainder[1])
 
            if remain_len == 3:
 
                self.args.to_currency = self._convert_or_error(
 
                    currency_code, self.args.remainder[2])
 
        else:
 
            self.error("too many arguments")
 

	
 
    def _build_cache_loader(self):
 
        kwargs = dict(self.conffile.items('Cache'))
 
        try:
 
            kwargs['dir_path'] = kwargs.pop('directory')
 
            kwargs['dir_path'] = pathlib.Path(kwargs.pop('directory'))
 
        except KeyError:
 
            pass
 
        self.cache = cache.CacheWriter(**kwargs)
 
        return loaders.FileCache(**kwargs)
 

	
 
    def _build_oxrapi_loader(self):
 
        kwargs = dict(self.conffile.items('OXR'))
 
        return loaders.OXRAPIRequest(**kwargs)
 

	
 
    def get_loaders(self):
 
        loader_chain = loaders.LoaderChain()
 
        for build_func in [
0 comments (0 inline, 0 general)