Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not override user-specified warnings filter
Currently the Lektor CLI unconditionally sets the warnings filter to "default". There is no way of the user to configure this. Here we bypass re-configuring the warnings filter if it has already been customized, either via the PYTHONWARNINGS environment variable or by python's -W flag. E.g., now one can show all warnings by doing either of: PYTHONWARNINGS=always lektor build or python -W always -m lektor build Ref: https://docs.python.org/3/library/warnings.html#overriding-the-default-filter
- Loading branch information