spec.py: ensure spec.extra_attributes is {} if is null in json (#48896)
This commit is contained in:
parent
495537cf56
commit
4487598d60
@ -4902,7 +4902,7 @@ def from_node_dict(cls, node):
|
||||
spec.external_modules = node["external"]["module"]
|
||||
if spec.external_modules is False:
|
||||
spec.external_modules = None
|
||||
spec.extra_attributes = node["external"].get("extra_attributes", {})
|
||||
spec.extra_attributes = node["external"].get("extra_attributes") or {}
|
||||
|
||||
# specs read in are concrete unless marked abstract
|
||||
if node.get("concrete", True):
|
||||
|
Loading…
Reference in New Issue
Block a user