mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-09 12:21:57 -04:00
Update archivebox/misc/logging_util.py
Co-authored-by: Nick Sweeting <git@sweeting.me>
This commit is contained in:
parent
9f4cf0a8e1
commit
71c02ca4eb
1 changed files with 3 additions and 2 deletions
|
@ -155,9 +155,10 @@ class TimedProgress:
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
# sometimes the timer doesn't terminate properly, then blocks at the join until
|
# sometimes the timer doesn't terminate properly, then blocks at the join until
|
||||||
# the full time has elapsed. sending a kill tries to avoid that.
|
# the full time has elapsed. sending a kill tries to avoid that.
|
||||||
if self.p.is_alive():
|
try:
|
||||||
self.p.kill()
|
self.p.kill()
|
||||||
self.p.join()
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
# clear whole terminal line
|
# clear whole terminal line
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue