diff options
author | Ben Thayer <ben@benthayer.com> | 2019-10-22 14:39:50 -0500 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2019-10-23 12:32:37 +0200 |
commit | dfa0eac1578bff14a8f7fa00bfc3c57aba24f877 (patch) | |
tree | eaf1a794ecce3ffef410a75907cbfc2c30bd6b66 /git | |
parent | 74930577ec77fefe6ae9989a5aeb8f244923c9ac (diff) | |
download | gitpython-dfa0eac1578bff14a8f7fa00bfc3c57aba24f877.tar.gz |
Added exception handling for WinError6
Diffstat (limited to 'git')
-rw-r--r-- | git/cmd.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -365,8 +365,11 @@ class Git(LazyMixin): 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: |