diff --git a/git/cmd.py b/git/cmd.py index c29e34854..a8afc1449 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -287,7 +287,7 @@ def __del__(self): return # can be that nothing really exists anymore ... - if os is None: + if os is None or os.kill is None: return # try to kill it