diff --git a/src/memory/cache.py b/src/memory/cache.py index fc5f9b87..1f33ca3f 100644 --- a/src/memory/cache.py +++ b/src/memory/cache.py @@ -57,6 +57,9 @@ class Cache(object): @return (unicode, None): absolute path to cached file None if file is not in cache (or cache is invalid) """ + uid = uid.strip() + if not uid: + return None cache_url = self.getPath(uid) if not os.path.exists(cache_url): return None