Description
In Python 3, raise "..." is invalid because exceptions must derive from BaseException. When a malformed app entry is encountered (len(matches) != 1), this path crashes with TypeError: exceptions must derive from BaseException, masking the real input problem and breaking the CI check.
Severity: high
File: ensure_sorted.py
Expected Behavior
The code should handle this case properly to avoid unexpected errors or degraded quality.
Description
In Python 3,
raise "..."is invalid because exceptions must derive fromBaseException. When a malformed app entry is encountered (len(matches) != 1), this path crashes withTypeError: exceptions must derive from BaseException, masking the real input problem and breaking the CI check.Severity:
highFile:
ensure_sorted.pyExpected Behavior
The code should handle this case properly to avoid unexpected errors or degraded quality.