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:
Manfred Riem
2026-06-04 12:23:09 -05:00
committed by GitHub
parent fc9ce2cfec
commit c8664f9f6a

View File

@@ -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