fix(debug): Print when Rich is unavailable
This commit is contained in:
parent
1d929f5fb3
commit
8bf8ae3def
@ -183,7 +183,7 @@ def we_have_unset_options(
|
|||||||
for option in config_obj.options(section_name):
|
for option in config_obj.options(section_name):
|
||||||
if not config_obj.get(section_name, option):
|
if not config_obj.get(section_name, option):
|
||||||
if option not in internal_empty_ok:
|
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)
|
options_must_be_non_empty.append(option)
|
||||||
|
|
||||||
return options_must_be_non_empty
|
return options_must_be_non_empty
|
||||||
|
Loading…
x
Reference in New Issue
Block a user