Skip to content

Commit f23994e

Browse files
aethanolByron
authored andcommitted
Catch OSError to handle gevent monkey patching errors
1 parent ca2cf10 commit f23994e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/cmd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ def read_all_from_possibly_closed_stream(stream: Union[IO[bytes], None]) -> byte
546546
if stream:
547547
try:
548548
return stderr_b + force_bytes(stream.read())
549-
except ValueError:
549+
except (OSError, ValueError):
550550
return stderr_b or b""
551551
else:
552552
return stderr_b or b""

0 commit comments

Comments
 (0)