Skip to content

fix: regex null safety, elapsed time unit, and remove dead code#12

Open
avi8or wants to merge 1 commit into
piercelamb:mainfrom
avi8or:fix/code-bugs
Open

fix: regex null safety, elapsed time unit, and remove dead code#12
avi8or wants to merge 1 commit into
piercelamb:mainfrom
avi8or:fix/code-bugs

Conversation

@avi8or
Copy link
Copy Markdown

@avi8or avi8or commented Mar 5, 2026

  • The section sorting in sections.py assumes every filename matches the expected pattern, but if one doesn't, it blows up with an AttributeError on None. Added a small helper that safely returns 0 for anything that doesn't match.

  • The stability wait log in write-section-on-stop.py says "ms" but the actual value is in seconds, so it always shows something like "0ms" even when it waited a full second. Multiplied by 1000 so the log is accurate.

  • needs_migration() in task_storage.py isn't called from anywhere. Removed it to keep things clean. Maybe left over from early days?

All 339 existing tests pass.

- The section sorting in sections.py assumes every filename matches
  the expected pattern, but if one doesn't, it blows up with an
  AttributeError on None. Added a small helper that safely returns 0
  for anything that doesn't match.

- The stability wait log in write-section-on-stop.py says "ms" but
  the actual value is in seconds, so it always shows something like
  "0ms" even when it waited a full second. Multiplied by 1000 so the
  log is accurate.

- needs_migration() in task_storage.py isn't called from anywhere.
  Removed it to keep things clean.

All 339 existing tests pass.
@avi8or avi8or changed the title Fix regex null safety, elapsed time unit, and remove dead code fix: regex null safety, elapsed time unit, and remove dead code Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant