Fix loading content from cache

This commit is contained in:
Michaël Arnauts 2020-09-10 21:06:02 +02:00
parent 33b53e8ab4
commit dcc0a61560

View File

@ -602,7 +602,7 @@ class ContentApi:
def _get_cache(self, key, allow_expired=False):
""" Get an item from the cache """
filename = ('.'.join(key) + '.json').replace('/', '_')
fullpath = self._cache_path + filename
fullpath = os.path.join(self._cache_path, filename)
if not os.path.exists(fullpath):
return None