summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorEthan Anderson <eanderson@atlassian.com>2022-07-05 17:07:53 -0500
committerSebastian Thiel <sebastian.thiel@icloud.com>2022-07-06 09:11:45 +0800
commitf23994e3bdd20164a1365296153044d5c7718fef (patch)
tree9490db5a740e3f46716c921ee102381762ce6a11 /git/cmd.py
parentca2cf108522b0a298caf8f32e72df1c6006abcf8 (diff)
downloadgitpython-f23994e3bdd20164a1365296153044d5c7718fef.tar.gz
Catch OSError to handle gevent monkey patching errors
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 0d291367..3dd5aad3 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -546,7 +546,7 @@ class Git(LazyMixin):
if stream:
try:
return stderr_b + force_bytes(stream.read())
- except ValueError:
+ except (OSError, ValueError):
return stderr_b or b""
else:
return stderr_b or b""