Skip to content

Commit fac5ac1

Browse files
committed
fix: mypy
risk: nonprod
1 parent f1b932f commit fac5ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gooddata-sdk/gooddata_sdk/catalog/workspace/model_container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def facts(self) -> list[CatalogFact]:
4949

5050
@property
5151
def aggregated_facts(self) -> list[CatalogAggregatedFact]:
52-
return [f for d in self._datasets for f in d.aggregated_facts]
52+
return [f for d in self._datasets for f in (d.aggregated_facts if d.aggregated_facts else [])]
5353

5454
@property
5555
def attributes(self) -> list[CatalogAttribute]:

0 commit comments

Comments
 (0)