From 5ec3cade68435121a05073fff93726d6f7b4856f Mon Sep 17 00:00:00 2001 From: pawel Date: Thu, 5 Sep 2019 17:32:27 +0200 Subject: [PATCH] remote: base: check progress_callback when skipping on checkout --- dvc/remote/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dvc/remote/base.py b/dvc/remote/base.py index 619b4799d..8eecd0bd1 100644 --- a/dvc/remote/base.py +++ b/dvc/remote/base.py @@ -771,7 +771,10 @@ class RemoteBASE(object): skip = True if skip: - progress_callback(str(path_info), self.get_files_number(checksum)) + if progress_callback: + progress_callback( + str(path_info), self.get_files_number(checksum) + ) return msg = "Checking out '{}' with cache '{}'."