mirror of
https://github.com/github/spec-kit.git
synced 2026-07-03 12:28:06 +08:00
Potential fix for pull request finding 'Empty except'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
@@ -69,8 +69,10 @@ def check_tool(tool: str, tracker=None) -> bool:
|
||||
else:
|
||||
tracker.error(tool, "not found")
|
||||
return found
|
||||
except ImportError:
|
||||
pass
|
||||
except ImportError as exc:
|
||||
# Integrations module is unavailable in this environment; fall back
|
||||
# to PATH-based detection below for non-integration tools.
|
||||
_ = exc
|
||||
|
||||
# Fallback for non-integration tools (e.g. "git").
|
||||
found = shutil.which(tool) is not None
|
||||
|
||||
Reference in New Issue
Block a user