Skip to content

Commit 7ca1872

Browse files
authored
fix(ResourceManager): no engines attached to db (#244)
1 parent dd475ff commit 7ca1872

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/firebolt/service/binding.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ def get_engines_bound_to_database(self, database: Database) -> List[Engine]:
8181
"""Get a list of engines that are bound to a database."""
8282

8383
bindings = self.get_many(database_id=database.database_id)
84+
if not bindings:
85+
return []
8486
return self.resource_manager.engines.get_by_ids(
8587
ids=[b.engine_id for b in bindings]
8688
)

0 commit comments

Comments
 (0)