PY3.W1508
Invalid env var default
Env manipulation functions return None or str values. Supplying anything different as a default may cause bugs. See https://docs.python.org/3/library/os.html#os.getenv for more details.
Noncompliant Code:
Copy
import os
env = os.getenv('SECRET_KEY', 1)
Compliant Code:
Copy
import os
env = os.getenv('SECRET_KEY', '1')