# HG changeset patch # User Goffi # Date 1484492440 -3600 # Node ID 766dbbec56f2cc7aa9d5a5ab2bf02fb5ea2996ed # Parent 3435e8d2e8e451825c617f89f9dbe08098004c54 core (memory/cache): geFilePath now return None when uid is empty diff -r 3435e8d2e8e4 -r 766dbbec56f2 src/memory/cache.py --- a/src/memory/cache.py Mon Jan 09 23:10:16 2017 +0100 +++ b/src/memory/cache.py Sun Jan 15 16:00:40 2017 +0100 @@ -57,6 +57,9 @@ @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