Skip to content

fix: raising a string causes typeerror instead of intended validation error #615

@huyhoang171106

Description

@huyhoang171106

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions