Catch CommandError rather than SystemExit in tests of commands.
Catch CommandError rather than SystemExit in tests of commands.

Prior to Django 1.5, when a command raised an exception it would
be caught and a SystemExit raised instead so it was correct to
catch SystemExit when testing for this. With Django 1.5, the
CommandError itself propagates - see

https://docs.djangoproject.com/en/1.5/releases/1.5/#miscellaneous

So we should catch that.

mysociety/pombola,ken-muturi/pombola,ken-muturi/pombola,hzj123/56th,hzj123/56th,hzj123/56th,geoffkilpin/pombola,patricmutwiri/pombola,patricmutwiri/pombola,hzj123/56th,ken-muturi/pombola,patricmutwiri/pombola,patricmutwiri/pombola,geoffkilpin/pombola,hzj123/56th,geoffkilpin/pombola,geoffkilpin/pombola,patricmutwiri/pombola,hzj123/56th,geoffkilpin/pombola,mysociety/pombola,geoffkilpin/pombola,ken-muturi/pombola,ken-muturi/pombola,patricmutwiri/pombola,mysociety/pombola,mysociety/pombola,mysociety/pombola,ken-muturi/pombola,mysociety/pombola