mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-12 19:50:13 +08:00
Fix another windows issue
This commit is contained in:
1 parent
106573f20d
commit
b5bc25fc0b
1 file changed
+3
-1
@@ -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