From b39c13e2a51031f1499111aab5dc327ae85921c0 Mon Sep 17 00:00:00 2001 From: gyptazy Date: Sat, 13 Dec 2025 20:05:11 +0100 Subject: [PATCH] fix: Fix crashing on non-existent pools Fixes: #395 --- proxlb/models/tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxlb/models/tags.py b/proxlb/models/tags.py index a207f0e..f02bf36 100644 --- a/proxlb/models/tags.py +++ b/proxlb/models/tags.py @@ -248,7 +248,7 @@ class Tags: if pool in (proxlb_config['balancing'].get('pools') or {}): pool_nodes = proxlb_config['balancing']['pools'][pool].get('pin', None) - for node in pool_nodes: + for node in pool_nodes if pool_nodes is not None else []: # Validate if the node to pin is present in the cluster if Helper.validate_node_presence(node, nodes):