From 30ba97fce4b670314d5e88974510a745d6776842 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 20 Mar 2018 07:48:20 +0200 Subject: [PATCH] checkout: don't print 'cache not found' if cache is None Fixes #579 Signed-off-by: Ruslan Kuprieiev --- dvc/output.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dvc/output.py b/dvc/output.py index 342bed3b6..39a0d08a5 100644 --- a/dvc/output.py +++ b/dvc/output.py @@ -287,7 +287,8 @@ class Output(Dependency): return if not self.cache or not os.path.exists(self.cache): - self.project.logger.warn(u'\'{}\': cache file not found'.format(self.rel_path)) + if self.cache: + self.project.logger.warn(u'\'{}({})\': cache file not found'.format(self.rel_cache, self.rel_path)) self.remove() return