mirror of
https://github.com/davidhalter/jedi.git
synced 2026-01-16 08:56:44 +08:00
Sometimes when terminating, the subprocess module is already gone and equals None.
This commit is contained in:
@@ -203,7 +203,7 @@ class CompiledSubprocess(object):
|
||||
|
||||
def _kill(self):
|
||||
self.is_crashed = True
|
||||
if subprocess.signal is None:
|
||||
if getattr(subprocess, 'signal', None) is None:
|
||||
# If the Python process is terminating, sometimes it will remove
|
||||
# the signal module before a lot of other things, so check for it
|
||||
# and don't do anything, because the process is killed anyways.
|
||||
|
||||
Reference in New Issue
Block a user