refactor: address code review issues — remove stale import, fix misleading var name, eliminate redundant adjacency build, add warning log on pin-angle failure

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Eugene Mikhantyev
2026-04-12 17:32:18 +01:00
parent 4f733bb3db
commit 1df6332aa8
3 changed files with 7 additions and 6 deletions

View File

@@ -98,7 +98,10 @@ class ConnectionManager:
# Stub direction follows the pin's outward angle from the PinLocator
try:
pin_angle_deg = locator.get_pin_angle(schematic_path, component_ref, pin_name) or 0
except Exception:
except Exception as e:
logger.warning(
f"Could not get pin angle for {component_ref}/{pin_name}, defaulting to 0: {e}"
)
pin_angle_deg = 0
import math as _math