From 18f6f906fe9e6a2be980130ac68cd9bce113ccdc Mon Sep 17 00:00:00 2001 From: cloudwithax Date: Thu, 25 Nov 2021 11:11:25 -0500 Subject: [PATCH] why did i use a generator expression lmao --- pomice/pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pomice/pool.py b/pomice/pool.py index 9459422..84c2e8a 100644 --- a/pomice/pool.py +++ b/pomice/pool.py @@ -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.")