diff --git a/libsaria/path/cache.py b/libsaria/path/cache.py index 55c33768..1e8d0f97 100644 --- a/libsaria/path/cache.py +++ b/libsaria/path/cache.py @@ -30,7 +30,8 @@ class CacheObject: if success: return path else: - rm(path) + if exists(path): + rm(path) else: return path