diff options
author | Yaroslav Halchenko <debian@onerussian.com> | 2017-11-27 22:25:57 -0500 |
---|---|---|
committer | Yaroslav Halchenko <debian@onerussian.com> | 2017-11-27 22:25:57 -0500 |
commit | e1aea3af6dcabfe4c6414578b22bfbb31a7e1840 (patch) | |
tree | 6599db906b4a27fbf786cb9dfd17bb8779610f11 /git/exc.py | |
parent | 086af072907946295f1a3870df30bfa5cf8bf7b6 (diff) | |
download | gitpython-e1aea3af6dcabfe4c6414578b22bfbb31a7e1840.tar.gz |
BF: crazy tests ppl pass an object for status... uff -- catch TypeError too
Diffstat (limited to 'git/exc.py')
-rw-r--r-- | git/exc.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -48,7 +48,7 @@ class CommandError(UnicodeMixin, GitError): else: try: status = u'exit code(%s)' % int(status) - except ValueError: + except (ValueError, TypeError): s = safe_decode(str(status)) status = u"'%s'" % s if isinstance(status, string_types) else s |