Prevent download failures when total_size is unknown.
TypeError: '<' not supported between instances of 'int' and 'NoneType'
@@ -284,6 +284,10 @@ def get_file(
total_size = None
self.progbar = Progbar(total_size)
current = block_num * block_size
+
+ if total_size is None:
+ self.progbar.update(current)
+ else:
if current < total_size:
self.progbar.update(current)
elif not self.finished:
