From c80d727e374321573bb00e23876a67c77ff466e3 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 4 Jan 2015 13:48:29 +0100 Subject: Bumped version, updated changelog, reduced code smell There is more work to do though, as many imports are still incorrect. Also, there are still print statements --- git/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'git/util.py') diff --git a/git/util.py b/git/util.py index 0408e384..c29ed70b 100644 --- a/git/util.py +++ b/git/util.py @@ -17,6 +17,8 @@ import getpass # Handle once test-cases are back up and running. from exc import GitCommandError +# Most of these are unused here, but are for use by git-python modules so these +# don't see gitdb all the time. Flake of course doesn't like it. from gitdb.util import ( make_sha, LockedFD, @@ -130,7 +132,7 @@ def finalize_process(proc): """Wait for the process (clone, fetch, pull or push) and handle its errors accordingly""" try: proc.wait() - except GitCommandError, e: + except GitCommandError: # if a push has rejected items, the command has non-zero return status # a return status of 128 indicates a connection error - reraise the previous one if proc.poll() == 128: -- cgit v1.2.1