summaryrefslogtreecommitdiff
path: root/git/exc.py
diff options
context:
space:
mode:
authorYaroslav Halchenko <debian@onerussian.com>2017-11-27 20:35:19 -0500
committerYaroslav Halchenko <debian@onerussian.com>2017-11-27 20:35:19 -0500
commit6ee08fce6ec508fdc6e577e3e507b342d048fa16 (patch)
tree47b8bac37afca3878d4535d3c13db38e55242628 /git/exc.py
parent0a96030d82fa379d24b952a58eed395143950c7b (diff)
downloadgitpython-6ee08fce6ec508fdc6e577e3e507b342d048fa16.tar.gz
RF: primarily flake8 lints + minor RF to reduce duplication in PATHEXT
I did keep some "bare" except with catch all Exception: , while tried to disable flake8 complaints where clearly all exceptions are to be catched
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..5c5aa2b4 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:
s = safe_decode(str(status))
status = u"'%s'" % s if isinstance(status, string_types) else s