fix: if error is a string do the same error has if it's a dict

This commit is contained in:
egarette@silique.fr 2026-09-07 09:14:20 +02:00
parent 5adf14feb9
commit 22c429e902
5 changed files with 9 additions and 8 deletions

View file

@ -1 +1 @@
__version__ = "0.2.0a19"
__version__ = "1.0.0"

View file

@ -112,7 +112,8 @@ class CommonOutput:
None, {}
).setdefault(description, []).append((msg, level))
else:
errors_dict.setdefault(None, []).append(error)
# Shoud not exist, error should always be a dict
errors_dict.setdefault(None, {}).setdefault(None, []).append((error, level))
def subconfig_to_dict(self, subconfig: "Subconfig", errors_dict: dict) -> dict:
# FIXME a tester : mandatories dans une arborescence (voir si ca n'ecrase pas)

View file

@ -1,4 +1,4 @@
> [!CAUTION]
>
> - cannot load variable path "dynVal3.val", the identifier "Val3" is not valid in fake user data
> - variable or family "dynVal3" does not exist so cannot load "dynVal3.val", it has been loading from fake user data
> - <span style='color: -'>:stop_sign: cannot load variable path "dynVal3.val", the identifier "Val3" is not valid in fake user data</span>
> - <span style='color: -'>:stop_sign: variable or family "dynVal3" does not exist so cannot load "dynVal3.val", it has been loading from fake user data</span>

View file

@ -1,4 +1,4 @@
> [!CAUTION]
>
> - cannot load variable path "dynVal3.val", the identifier "Val3" is not valid in fake user data
> - variable or family "dynVal3" does not exist so cannot load "dynVal3.val", it has been loading from fake user data
> - <span style='color: #C23636'>:stop_sign: cannot load variable path "dynVal3.val", the identifier "Val3" is not valid in fake user data</span>
> - <span style='color: #C23636'>:stop_sign: variable or family "dynVal3" does not exist so cannot load "dynVal3.val", it has been loading from fake user data</span>

View file

@ -1,3 +1,3 @@
🛑 Caution
┣━━ cannot load variable path "dynVal3.val", the identifier "Val3" is not valid in fake user data
┗━━ variable or family "dynVal3" does not exist so cannot load "dynVal3.val", it has been loading from fake user data
┣━━ 🛑 cannot load variable path "dynVal3.val", the identifier "Val3" is not valid in fake user data
┗━━ 🛑 variable or family "dynVal3" does not exist so cannot load "dynVal3.val", it has been loading from fake user data