invalid-envvar-value (PLE1507)
Added in v0.0.255 · Related issues · View source
Derived from the Pylint linter.
What it does
Checks for os.getenv calls with an invalid key argument.
Why is this bad?
os.getenv only supports strings as the first argument (key).
If the provided argument is not a string, os.getenv will throw a
TypeError at runtime.
Example
Use instead: