diff --git a/python-naive/{{ cookiecutter.__project_slug }}/{{ cookiecutter.__project_slug }}.py b/python-naive/{{ cookiecutter.__project_slug }}/{{ cookiecutter.__project_slug }}.py index be3f31a..979e63d 100644 --- a/python-naive/{{ cookiecutter.__project_slug }}/{{ cookiecutter.__project_slug }}.py +++ b/python-naive/{{ cookiecutter.__project_slug }}/{{ cookiecutter.__project_slug }}.py @@ -183,7 +183,7 @@ def we_have_unset_options( for option in config_obj.options(section_name): if not config_obj.get(section_name, option): if option not in internal_empty_ok: - log.warning(f"In section '[{section_name}]' option '{option}' is empty, it mustn't be.") + {% if cookiecutter.use_rich_logging == "yes" -%}log.warning{%- else -%}print{%- endif %}(f"In section '[{section_name}]' option '{option}' is empty, it mustn't be.") options_must_be_non_empty.append(option) return options_must_be_non_empty