Commit e5c76b1a authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Fix typo in using download progress bar

parent 28cbc3c2
......@@ -582,14 +582,15 @@ class PithosClient(PithosRestClient):
def _cb_next(self, step=1):
if hasattr(self, 'progress_bar_gen'):
try:
self.progress_bar_gen.next(step)
for i in xrange(step):
self.progress_bar_gen.next()
except:
pass
def _complete_cb(self):
while True:
try:
self.progress_bar_gen.next(step)
self.progress_bar_gen.next()
except:
break
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment