Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added exception handling for WinError6
  • Loading branch information
benthayer committed Oct 22, 2019
commit 0bbba6ba41b6f00bedc8f9fd3c174ae5c81fe0bd
7 changes: 5 additions & 2 deletions git/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down