[Fix] Upgraded ai-lib, temporarily ignore additional validation errors (#328)

Co-authored-by: Tim Lorsbach <tim@lorsba.ch>
Reviewed-on: enviPath/enviPy#328
This commit is contained in:
2026-02-11 03:49:20 +13:00
parent 5789f20e7f
commit 27c5bad9c5
3 changed files with 13 additions and 5 deletions

View File

@ -3946,7 +3946,15 @@ class Scenario(EnviPathModel):
for v in vals:
# Per default additional fields are ignored
MAPPING = {c.__name__: c for c in registry.list_models().values()}
inst = MAPPING[k](**v)
try:
inst = MAPPING[k](**v)
except Exception as e:
logger.error(f"Could not load additional information {k}: {e}")
if s.SENTRY_ENABLED:
from sentry_sdk import capture_exception
capture_exception(e)
# Add uuid to uniquely identify objects for manipulation
if "uuid" in v:
inst.__dict__["uuid"] = v["uuid"]