Unverified Commit 4dc0d606 authored by Kevin McKay's avatar Kevin McKay Committed by GitHub
Browse files

[Bugfix] Narrow broad exceptions in compilation backends (#31616)


Signed-off-by: default avatarc0de128 <kevin.mckay@outlook.com>
Co-authored-by: default avatarClaude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: default avatarCyrus Leung <tlleungac@connect.ust.hk>
parent ac0675ff
......@@ -606,7 +606,7 @@ class VllmBackend:
try:
with open(filepath) as f:
hash_content.append(f.read())
except Exception:
except OSError:
logger.warning("Failed to read file %s", filepath)
continue
code_hash = hashlib.sha256("\n".join(hash_content).encode()).hexdigest()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment