fix: _lookup_bandwidth crashes on a truthy non-string gpu_name (#1641)

This commit is contained in:
Afonso Coutinho
2026-06-03 06:11:10 +01:00
committed by GitHub
parent 8707cc69ee
commit 290a3ba714
2 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ CONTEXT_TARGET = {
def _lookup_bandwidth(gpu_name):
if not gpu_name:
if not isinstance(gpu_name, str) or not gpu_name:
return None
gn = gpu_name.lower()
for key in _BW_KEYS_SORTED: