better model version detect and experimental pydantic v2

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-09-04 12:41:40 -04:00
parent 2124ab6879
commit 72a9094b42
12 changed files with 58 additions and 31 deletions
+5 -1
View File
@@ -64,7 +64,11 @@ class Options():
"""sets an option and calls its onchange callback, returning True if the option changed and False otherwise"""
oldval = self.data.get(key, None)
if oldval is None:
oldval = self.data_labels[key].default
if key in self.data_labels:
oldval = self.data_labels[key].default
else:
log.warning(f'Settings: key={key} value={value} unknown')
return False
if oldval == value:
return False
try: