X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Fcache.py;h=2640bf01db39101712ad0c6278c878152c2ba923;hb=e86c25ed9e97c5dd3e0672d5b17bed01d4a23fdf;hp=f59c4645cadead8fa8128f85053fc4d84493fa7d;hpb=b2341c5c948f731c9247706db09646eb6c61eec5;p=mpd-sima.git diff --git a/sima/lib/cache.py b/sima/lib/cache.py index f59c464..2640bf0 100644 --- a/sima/lib/cache.py +++ b/sima/lib/cache.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2014 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)