Skip to content

Commit

Permalink
Merge pull request iterative#640 from efiop/master
Browse files Browse the repository at this point in the history
state: handle non-existing path
  • Loading branch information
efiop authored Apr 9, 2018
2 parents cf09c89 + e5920e6 commit f529447
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dvc/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ def inode(path):
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)

Expand Down

0 comments on commit f529447

Please sign in to comment.