mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
Merge pull request #2734 from shcheklein/fix-get-npe
fix NPE when we do get that does not provide progress callback
This commit is contained in:
+2
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user