Using sys.exit in a management command makes it impossible to unit test the code in question. The correct approach to do the same thing in Django management commands is to raise CommandError. Followup of b570c0dafa
b570c0dafa
Signed-off-by: Anders Kaseorg <andersk@mit.edu>