Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
custom_check: Improve check for exit(...) call in management commands.
Mateusz Mandera3688ff38bd92
diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.pyindex 3e53a28cce8..b029f58c51c 100644--- a/tools/linter_lib/custom_check.py+++ b/tools/linter_lib/custom_check.py@@ -456,7 +456,7 @@ python_rules = RuleList(],},{- "pattern": "exit[(]1[)]",+ "pattern": r"exit[(][1-9]\d*[)]","include_only": {"/management/commands/"},"description": "Raise CommandError to exit with failure in management commands","exclude": {"zerver/management/commands/process_queue.py"},