Fix progress bar on pip
@@ -46,7 +46,7 @@ def main(args):
file_size_dl = 0
block_sz = 8192
- if file_size == 0:
+ if file_size != 0 and file_size is not None:
bar = Bar('Downloading', max=100)
else:
bar = None
