Skip to content

[BUG] _raise_error_for_missing_spatial_dim raises TypeError instead of ValueErrorΒ #893

@PewterZz

Description

@PewterZz

In movement/utils/vector.py, _raise_error_for_missing_spatial_dim() does:

raise logger.error(ValueError(...))

logger.error() returns None, so callers get TypeError: exceptions must derive from BaseException instead of ValueError.

Fix: call logger.error() and raise separately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    πŸ€” Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions