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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy