Skip to content

Commit 1df81eb

Browse files
committed
fix: check fv entities emptiness before if the first one is dummy
Signed-off-by: Hai Nguyen <quanghai.ng1512@gmail.com>
1 parent d272e75 commit 1df81eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/python/feast/feature_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def _list_feature_views(
287287
for fv in self._registry.list_feature_views(
288288
self.project, allow_cache=allow_cache
289289
):
290-
if hide_dummy_entity and fv.entities[0] == DUMMY_ENTITY_NAME:
290+
if hide_dummy_entity and fv.entities and fv.entities[0] == DUMMY_ENTITY_NAME:
291291
fv.entities = []
292292
fv.entity_columns = []
293293
feature_views.append(fv)

0 commit comments

Comments
 (0)