From d83f6e84cbeb45dce4576a9a4591446afefa50b2 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 7 Jan 2015 09:29:20 +0100 Subject: Make sure we ignore WindowsErrors too, in case the process is already dead Fixes #140 --- git/cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/cmd.py') diff --git a/git/cmd.py b/git/cmd.py index 4a49bc1b..ef370fe2 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -103,7 +103,7 @@ class Git(LazyMixin): 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 -- cgit v1.2.1