aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xckandumper10
1 files changed, 10 insertions, 0 deletions
diff --git a/ckandumper b/ckandumper
index ba6dfa0..be38965 100755
--- a/ckandumper
+++ b/ckandumper
@@ -133,6 +133,9 @@ class DownloadMultiple:
await asyncio.gather(*jobs)
+ if hasattr(progress_bar, 'close'):
+ progress_bar.close()
+
def get(self, filepairs):
self.stats = { 'exitstatus': {} }
loop = asyncio.get_event_loop()
@@ -336,3 +339,10 @@ if __name__ == "__main__":
except KeyboardInterrupt as e:
print(e)
exit(1)
+ #except RuntimeError as e:
+ # # Weird tqdm error
+ # if str(e) == 'Set changed size during iteration':
+ # pass
+ # else:
+ # print(e)
+ # exit(1)