Add setup (this is only temporary for the hackathon)
This commit is contained in:
parent
f83a5e90ae
commit
447a52b684
7 changed files with 10936 additions and 2 deletions
2
src/c3nav/mapdata/utils/cache/local.py
vendored
2
src/c3nav/mapdata/utils/cache/local.py
vendored
|
@ -28,7 +28,7 @@ class LocalCacheProxy:
|
|||
try:
|
||||
# first check out cache
|
||||
result = self._items.get()[key]
|
||||
except KeyError:
|
||||
except (KeyError, LookupError):
|
||||
# not in our cache
|
||||
result = cache.get(key, default=NoneFromCache)
|
||||
if result is not NoneFromCache:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue