From 8f403c07048bd7361db53b5976e04c198c409fc7 Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Mon, 4 Nov 2019 13:01:28 -0800 Subject: [PATCH] fix NPE when we do get that does not provide progress callback --- dvc/output/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dvc/output/base.py b/dvc/output/base.py index 8fa3ad367..df2d3d2ce 100644 --- a/dvc/output/base.py +++ b/dvc/output/base.py @@ -287,7 +287,8 @@ class OutputBase(object): def checkout(self, force=False, progress_callback=None, tag=None): if not self.use_cache: - progress_callback(str(self.path_info), self.get_files_number()) + if progress_callback: + progress_callback(str(self.path_info), self.get_files_number()) return None if tag: