Skip to content

Settings.from_env() crashes with a raw ValueError on malformed numeric env vars #13

Description

@royalpinto007

Problem

TENANTQ_HNSW_M=abc crashes startup with a raw ValueError from int() instead of an error naming the variable.

Where

src/tenantq/config.py (Settings.from_env: bare int(os.getenv(...)) calls).

Acceptance

Add a failing test first setting a non-numeric TENANTQ_HNSW_M, expecting an error naming the variable. Then fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions