edx-lint icon indicating copy to clipboard operation
edx-lint copied to clipboard

Suggestion: warn on use of sys.exit

Open cpennington opened this issue 6 years ago • 0 comments

sys.exit is probably wrong in most places in edx code. It's almost always better to just raise an exception. In particular, in management commands, you should raise a CommandError so that callers using the command via call_command don't have the process shut down underneath them.

cpennington avatar Feb 05 '19 17:02 cpennington