diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-08 09:21:25 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-08 09:24:32 +0100 |
commit | c7887c66483ffa9a839ecf1a53c5ef718dcd1d2d (patch) | |
tree | d1ad397204ded47871580a157011c5754ce5fbbb /git/cmd.py | |
parent | 36cdfd3209909163549850709d7f12fdf1316434 (diff) | |
download | gitpython-c7887c66483ffa9a839ecf1a53c5ef718dcd1d2d.tar.gz |
Improve error handling of fetch/pull line parsing
Fixes #48
Diffstat (limited to 'git/cmd.py')
-rw-r--r-- | git/cmd.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -83,7 +83,12 @@ def handle_process_output(process, stdout_handler, stderr_handler, finalizer): # we are good ... line = readline(stream).decode(defenc) if line and handler: - handler(line) + try: + handler(line) + except Exception: + # Keep reading, have to pump the lines empty nontheless + log.error("Line handler exception on line: %s", line, exc_info=True) + # end return line # end dispatch helper # end |