Skip to content

Commit e1aea3a

Browse files
committed
BF: crazy tests ppl pass an object for status... uff -- catch TypeError too
1 parent 086af07 commit e1aea3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/exc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(self, command, status=None, stderr=None, stdout=None):
4848
else:
4949
try:
5050
status = u'exit code(%s)' % int(status)
51-
except ValueError:
51+
except (ValueError, TypeError):
5252
s = safe_decode(str(status))
5353
status = u"'%s'" % s if isinstance(status, string_types) else s
5454

0 commit comments

Comments
 (0)