Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bug_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# ── Railway log scanner (silent failure detection) ────────────────────────────
try:
from layer_coverage_check import _check_layer_coverage, format_layer_embed
from railway_log_scanner import (
from railway_log_scanner import (
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

While this change correctly fixes the syntax error, grouping these imports into a single try block without updating the corresponding except ImportError block (line 25) introduces a regression.

If layer_coverage_check.py is missing, the ImportError will be caught, but the except block does not provide a fallback for _check_layer_coverage. This will cause a NameError when the function is called at line 538. Furthermore, the existing fallback messages specifically mention railway_log_scanner.py, which would be misleading if the failure was caused by layer_coverage_check.py.

Recommendation: Update the except block to provide a fallback for _check_layer_coverage and ensure the error messages are accurate. Additionally, format_layer_embed (imported on line 20) appears to be unused in this file.

_check_railway_silent_failures,
_check_pipeline_health,
)
Expand Down