Skip to content

Comments

fix: narrow parse and prefetch exception handling#29

Open
fmueller wants to merge 1 commit intomainfrom
fix/phase-c-exception-hardening
Open

fix: narrow parse and prefetch exception handling#29
fmueller wants to merge 1 commit intomainfrom
fix/phase-c-exception-hardening

Conversation

@fmueller
Copy link
Owner

Summary

  • replace broad parse-time except Exception blocks in note/body loaders with targeted parser exceptions (yaml.YAMLError, TypeError, ValueError)
  • tighten translation prefetch fallback handling to catch expected runtime failures (RuntimeError, PostEditAborted) instead of swallowing all exceptions
  • reduce language detection fallback catches to targeted runtime/value/type/attribute failure classes
  • add regression tests for loader parse error mapping and for preserving unexpected prefetch exceptions

Validation

  • uv run ruff check
  • uv run mypy
  • uv run pytest

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