Made exception a little more specific.

Previouly, gitpython assertion errors would make it think the command was wrong - after executing it