mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-07 05:40:20 +03:00
Revert to diagnose error
This commit is contained in:
parent
1bf82db1e6
commit
78ee9c301a
|
@ -303,7 +303,7 @@ def _process_worker_status_messages(
|
|||
for other_cmd_info in (c for c in cmd_infos if c.state.name == "running"):
|
||||
try:
|
||||
os.kill(cast(int, other_cmd_info.pid), SIGTERM)
|
||||
except: # different errors on different OS
|
||||
except ProcessLookupError:
|
||||
# the subprocess the main process is trying to kill could already
|
||||
# have completed, and the message from the worker process notifying
|
||||
# the main process about this could still be in the queue
|
||||
|
|
Loading…
Reference in New Issue
Block a user