Skip to content

Commit

Permalink
Make sure we ignore WindowsErrors too, in case the process is already…
Browse files Browse the repository at this point in the history
… dead

Fixes #140
  • Loading branch information
Byron committed Jan 7, 2015
1 parent a4b8e46 commit d83f6e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def __del__(self):
try:
os.kill(self.proc.pid, 2) # interrupt signal
self.proc.wait() # ensure process goes away
except OSError:
except (OSError, WindowsError):
pass # ignore error when process already died
except AttributeError:
# try windows
Expand Down

0 comments on commit d83f6e8

Please sign in to comment.