why did i use a generator expression lmao

This commit is contained in:
cloudwithax 2021-11-25 11:11:25 -05:00
parent d249d84f9f
commit 18f6f906fe
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ class NodePool:
based on the node's voice region. This method will only work
if you set a voice region when you create a node.
"""
available_nodes = (node for node in cls._nodes.values() if node._available)
available_nodes = [node for node in cls._nodes.values() if node._available]
if not available_nodes:
raise NoNodesAvailable("There are no nodes available.")