Content-Length: 943 | pFad | http://github.com/gitpython-developers/GitPython/pull/949.patch
thub.com
From 0bbba6ba41b6f00bedc8f9fd3c174ae5c81fe0bd Mon Sep 17 00:00:00 2001
From: Ben Thayer
Date: Tue, 22 Oct 2019 14:39:50 -0500
Subject: [PATCH] Added exception handling for WinError6
---
git/cmd.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/git/cmd.py b/git/cmd.py
index 263c8ba76..484a0181a 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -365,8 +365,11 @@ def __del__(self):
proc.stderr.close()
# did the process finish already so we have a return code ?
- if proc.poll() is not None:
- return
+ try:
+ if proc.poll() is not None:
+ return
+ except OSError as ex:
+ log.info("Ignored error after process had died: %r", ex)
# can be that nothing really exists anymore ...
if os is None or getattr(os, 'kill', None) is None:
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/gitpython-developers/GitPython/pull/949.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy