Skip to content

Commit f965bbf

Browse files
committed
fix: warnings as an option
1 parent f07681f commit f965bbf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pyconverter/xml2py/utils/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ def get_warning_command_dict(yaml_path: Path) -> dict:
7878
Path object of the YAML file.
7979
"""
8080
warnings_ = get_config_data_value(yaml_path, "warnings")
81+
if warnings_ is None:
82+
logger.info("No warning commands found in the YAML file.")
83+
return {}
8184
warning_command_dict = {}
8285
for warning_ in warnings_:
8386
message = warning_["msg"]

0 commit comments

Comments
 (0)