We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e2ae4f commit 17e2955Copy full SHA for 17e2955
1 file changed
src/firebolt/client/http_backend.py
@@ -58,6 +58,10 @@ def get_ip_round_robin(self, hostname: str) -> str:
58
if not cached_ips:
59
raise
60
61
+ # explicit check as hint for type checkers
62
+ if not cached_ips:
63
+ raise RuntimeError(f"Could not resolve or find cached IPs for {hostname}")
64
+
65
# calculate round robin index
66
current_index = self.indices.get(hostname, 0)
67
target_ip = cached_ips[current_index % len(cached_ips)]
0 commit comments