mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-20 18:05:19 -04:00
fix lgtm alerts
This commit is contained in:
parent
21bb84f627
commit
2c07d8f1f3
2 changed files with 3 additions and 5 deletions
archivebox
|
@ -157,7 +157,7 @@ class TimedProgress:
|
|||
# kill the progress bar subprocess
|
||||
try:
|
||||
self.p.close() # must be closed *before* its terminnated
|
||||
except:
|
||||
except BaseException:
|
||||
pass
|
||||
self.p.terminate()
|
||||
self.p.join()
|
||||
|
@ -223,7 +223,6 @@ def progress_bar(seconds: int, prefix: str='') -> None:
|
|||
# sys.stdout.flush()
|
||||
except (KeyboardInterrupt, BrokenPipeError):
|
||||
print()
|
||||
pass
|
||||
|
||||
|
||||
def log_cli_command(subcommand: str, subcommand_args: List[str], stdin: Optional[str], pwd: str):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue