X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Fcache.py;h=2640bf01db39101712ad0c6278c878152c2ba923;hb=beba5ba73dbb1b5c4d6161e472f89fe18f14aeeb;hp=9603c8b38f43fb049d38879db8b140dbc2b59e06;hpb=418a891bc69e8729f327e0c9fc38e45786ade65d;p=mpd-sima.git diff --git a/sima/lib/cache.py b/sima/lib/cache.py index 9603c8b..2640bf0 100644 --- a/sima/lib/cache.py +++ b/sima/lib/cache.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2014 Jack Kaliko +# Copyright (c) 2014, 2021 kaliko # Copyright (c) 2012, 2013 Eric Larson # # This program is free software: you can redistribute it and/or modify @@ -85,6 +85,7 @@ class FileCache: name = self._fn(key) if os.path.exists(name): return load(codecs.open(name, 'rb')) + return None def set(self, key, value): name = self._fn(key)