Skip to content

Commit

Permalink
better debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jm33-m0 committed Dec 24, 2019
1 parent ac80d82 commit 723038f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/cli/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,10 @@ def scan(self):

finally:
# check if any procs are done, remove them from pool, update progress bar
try:
for proc in pool:
if not psutil.pid_exists(proc.pid):
proc.remove(proc)
pbar.update(1)
except BaseException:
pass
for proc in pool:
if not psutil.pid_exists(proc.pid):
proc.remove(proc)
pbar.update(1)

# make sure all processes are done

Expand Down

0 comments on commit 723038f

Please sign in to comment.