forked from VimPlug/jedi
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):
|
def _kill(self):
|
||||||
self.is_crashed = True
|
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
|
# If the Python process is terminating, sometimes it will remove
|
||||||
# the signal module before a lot of other things, so check for it
|
# the signal module before a lot of other things, so check for it
|
||||||
# and don't do anything, because the process is killed anyways.
|
# and don't do anything, because the process is killed anyways.
|
||||||
|
|||||||
Reference in New Issue
Block a user