Skip to content

Commit

Permalink
修复插件报错导致任务状态异常问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ywolf authored Jun 3, 2019
1 parent 0664c89 commit edb0d4c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vulscan/vulscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,11 @@ def kp_update():
if int(thread._count()) < THREAD_COUNT:
if task_netloc[0] in WHITE_LIST:
break
thread.start_new_thread(
vulscan, (task_id, task_netloc, task_plugin))
try:
thread.start_new_thread(
vulscan, (task_id, task_netloc, task_plugin))
except Exception as e:
print e
break
else:
time.sleep(2)
Expand Down

0 comments on commit edb0d4c

Please sign in to comment.