state: handle non-existing path

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-04-10 02:25:34 +03:00
parent cf09c891b4
commit e5920e6a76
+3
View File
@@ -104,6 +104,9 @@ class State(object):
return str(System.inode(path))
def update(self, path, dump=True):
if not os.path.exists(path):
return None
mtime = self.mtime(path)
inode = self.inode(path)