diff --git a/sonic_platform_base/sonic_xcvr/fields/xcvr_field.py b/sonic_platform_base/sonic_xcvr/fields/xcvr_field.py index d56f9432dbfa..9a8402bfe524 100644 --- a/sonic_platform_base/sonic_xcvr/fields/xcvr_field.py +++ b/sonic_platform_base/sonic_xcvr/fields/xcvr_field.py @@ -257,7 +257,7 @@ def decode(self, raw_data, **decoded_deps): offset = field.get_offset() deps = field.get_deps() if deps: - decoded_deps = {dep: result[dep] for dep in deps} + decoded_deps.update({dep: result[dep] for dep in deps if dep in result}) result[field.name] = field.decode(raw_data[offset - start: offset + field.get_size() - start], **decoded_deps) return result