Skip to content

PQANALYSIS_LOG_FILE without PQANALYSIS_LOGGING_LEVEL crashes the import #210

Description

@galjos
$ env -u PQANALYSIS_LOGGING_LEVEL PQANALYSIS_LOG_FILE=on python -c 'import PQAnalysis'
AttributeError: 'NoneType' object has no attribute 'lower'

__init__.py:58 checks the off sentinel on the wrong variable (logging_env_var instead of log_file_env_var). The same typo means PQANALYSIS_LOG_FILE=off enables logging to a file literally named off.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions