mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Fix another windows issue
This commit is contained in:
@@ -189,7 +189,9 @@ class _CompiledSubprocess(object):
|
|||||||
pickle_dump(data, self._process.stdin)
|
pickle_dump(data, self._process.stdin)
|
||||||
except (socket.error, IOError) as e:
|
except (socket.error, IOError) as e:
|
||||||
# Once Python2 will be removed we can just use `BrokenPipeError`.
|
# Once Python2 will be removed we can just use `BrokenPipeError`.
|
||||||
if e.errno != errno.EPIPE:
|
# Also, somehow in windows it returns EINVAL instead of EPIPE if
|
||||||
|
# the subprocess dies.
|
||||||
|
if e.errno not in (errno.EPIPE, errno.EINVAL):
|
||||||
# Not a broken pipe
|
# Not a broken pipe
|
||||||
raise
|
raise
|
||||||
self.kill()
|
self.kill()
|
||||||
|
|||||||
Reference in New Issue
Block a user