diff --git a/ampel/base/AmpelUnit.py b/ampel/base/AmpelUnit.py index ead99a2e..80f9d7fa 100644 --- a/ampel/base/AmpelUnit.py +++ b/ampel/base/AmpelUnit.py @@ -191,9 +191,9 @@ def __init__(self, **kwargs) -> None: sa("_exclude_unset", unset) # Set kwargs attributes - for k in kwargs: + for k, v in kwargs.items(): if k in sks or k in aks: - sa(k, kwargs[k]) + sa(k, v) def _get_trace_content(self) -> dict[str, Any]: