Skip to content

fix(config): repeated file I/O and scraper_timeout falsy-zero bug #224

@tatenda-source

Description

@tatenda-source

Every config getter re-reads and re-parses config.json from disk. Also, get_scraper_timeout() uses 'or 300' which treats a valid value of 0 as falsy and returns 300 instead. Missing config.json existence check causes unhelpful FileNotFoundError.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions