summaryrefslogtreecommitdiff
path: root/git/exc.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/exc.py')
-rw-r--r--git/exc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/git/exc.py b/git/exc.py
index 6c9cde34..47215c21 100644
--- a/git/exc.py
+++ b/git/exc.py
@@ -34,7 +34,8 @@ class CommandError(UnicodeMixin, Exception):
_msg = u"Cmd('%s') failed%s"
def __init__(self, command, status=None, stderr=None, stdout=None):
- assert isinstance(command, (tuple, list)), command
+ if not isinstance(command, (tuple, list)):
+ command = command.split()
self.command = command
self.status = status
if status: