fix NPE when we do get that does not provide progress callback

This commit is contained in:
Ivan Shcheklein
2019-11-04 13:01:28 -08:00
parent 35507dfc61
commit 8f403c0704
+2 -1
View File
@@ -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: