fix(debug): Print when Rich is unavailable
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user