summaryrefslogtreecommitdiff
path: root/git/exc.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2017-12-11 11:47:40 +0100
committerGitHub <noreply@github.com>2017-12-11 11:47:40 +0100
commita14277eecf65ac216dd1b756acee8c23ecdf95d9 (patch)
tree174b504a43cf8b9e88165c1effd3ca9b28945d32 /git/exc.py
parent0a96030d82fa379d24b952a58eed395143950c7b (diff)
parentf48d08760552448a196fa400725cde7198e9c9b9 (diff)
downloadgitpython-a14277eecf65ac216dd1b756acee8c23ecdf95d9.tar.gz
Merge pull request #702 from yarikoptic/bf-happy-travis
BF (codename "happy travis"): trying to address lints etc to make Travis green again
Diffstat (limited to 'git/exc.py')
-rw-r--r--git/exc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/exc.py b/git/exc.py
index a737110c..4865da94 100644
--- a/git/exc.py
+++ b/git/exc.py
@@ -48,7 +48,7 @@ class CommandError(UnicodeMixin, GitError):
else:
try:
status = u'exit code(%s)' % int(status)
- except:
+ except (ValueError, TypeError):
s = safe_decode(str(status))
status = u"'%s'" % s if isinstance(status, string_types) else s