From 96cdd073bd2974da85f16b83a0b3127dfa850e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Rowlands=20=28=EB=B3=80=EA=B8=B0=ED=98=B8=29?= Date: Mon, 2 Nov 2020 21:16:29 +0900 Subject: [PATCH] diff: handle empty output status (#4826) --- dvc/repo/diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/repo/diff.py b/dvc/repo/diff.py index cb5857a60..ba7a4c44c 100644 --- a/dvc/repo/diff.py +++ b/dvc/repo/diff.py @@ -122,5 +122,5 @@ def _filter_missing(repo, paths): metadata = repo_tree.metadata(path) if metadata.is_dvc: out = metadata.outs[0] - if out.status()[str(out)] == "not in cache": + if out.status().get(str(out)) == "not in cache": yield path