libsaria: Cache removes path if it exists
I wasn't checking if the path exists before removing it, and this caused an error. Checking before removing is simple enough, though...
This commit is contained in:
parent
6d08dedba5
commit
212a846d8c
|
@ -30,7 +30,8 @@ class CacheObject:
|
|||
if success:
|
||||
return path
|
||||
else:
|
||||
rm(path)
|
||||
if exists(path):
|
||||
rm(path)
|
||||
|
||||
else:
|
||||
return path
|
||||
|
|
Loading…
Reference in New Issue