Skip to content

Config file parser crashes on empty values #42

@Nancy-Chauhan

Description

@Nancy-Chauhan

Bug Report\n\nWhen a TOML config file has empty string values, the config parser crashes with a TypeError.\n\ntoml\n[acme]\napi_key = ""\nendpoint = "https://ingest.acme-sdk.dev"\n\n\n\nTypeError: cannot parse '' as float\n\n\nThe issue is in _interpolate_env_vars — it tries to type-cast empty strings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions