Finalizing Gsoc#45 ids checking (#1694)

This commit is contained in:
ArturTomczak
2021-08-25 13:49:25 +02:00
committed by GitHub
parent 8c97b53bd2
commit 178611faa8
+3 -1
View File
@@ -502,8 +502,10 @@ class entity(facet):
:rtype: dict
"""
fac_dict = {"name": parameter_asdict(self.name)}
if "predefinedtype" in self:
try:
fac_dict["predefinedtype"] = parameter_asdict(self.predefinedtype)
except (RecursionError, UnboundLocalError) as e:
print(e)
return fac_dict
def __call__(self, inst, logger):