A high-throughput and memory-efficient inference and serving engine for LLMs
Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git
Synced Nov 10, 09:00 UTC
[Bugfix] Narrow broad exceptions in compilation backends (#31616)
Signed-off-by: c0de128 <kevin.mckay@outlook.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: Cyrus Leung <tlleungac@connect.ust.hk>
Kevin McKay committed
Jan 9, 2026 at 20:39 UTC
4dc0d606b78eb8dbb5e833ab45d3fbb1378edf35
1 file changed
+1
-1
vllm/compilation/backends.py
+1
-1
@@ -606,7 +606,7 @@ class VllmBackend:
606
try:
607
with open(filepath) as f:
608
hash_content.append(f.read())
609
- except Exception:
609
+ except OSError:
610
logger.warning("Failed to read file %s", filepath)
611
continue
612
code_hash = hashlib.sha256("\n".join(hash_content).encode()).hexdigest()