Skip to content

Commit 31cfce3

Browse files
[Krrood] new version with a fix for attribute when type is not parsable.
1 parent fcceab3 commit 31cfce3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "krrood"
7-
version = "1.0.7"
7+
version = "1.0.8"
88
description = "A university data generator based on the LUBM (Lehigh University Benchmark) ontology"
99
readme = "README.md"
1010
requires-python = ">=3.10"

src/krrood/entity_query_language/symbolic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,9 +1401,9 @@ def _type_(self):
14011401
wrapped_cls,
14021402
[f for f in fields(self._child_type_) if f.name == self._attr_name_][0],
14031403
)
1404-
if wrapped_field:
1404+
try:
14051405
return wrapped_field.type_endpoint
1406-
else:
1406+
except (AttributeError, RuntimeError):
14071407
return None
14081408

14091409
@cached_property

0 commit comments

Comments
 (0)