Skip to content

v0.8.1 — robust ask/doctor error handling

Choose a tag to compare

@notEhEnG notEhEnG released this 11 Jul 02:06

pip install --upgrade finance-skills · https://pypi.org/project/finance-skills/0.8.1/

Robustness fixes from a HIGH-effort code review of the routing/answer path (all deterministic, no LLM):

Fixed

  • ask no longer masks errors--explain now feature-detects a flags kwarg instead of a catch-and-retry except TypeError, so a real TypeError inside a builder surfaces instead of being swallowed.
  • ask unexpected exceptions are debuggable — the catch-all prints a traceback to stderr and tags the draft with the exception type, so a code bug is distinguishable from a legitimate "data unavailable".
  • doctor import guardedload_fixture uses the finance_skills.data / data __package__ shim like the rest of the module, no longer relying on sibling-module sys.path pollution when installed.

Gates: ruff + mypy clean, 216 tests (52 subtests). Verified on a wheel install: doctor + ask one-shot work, --explain still reaches valuation.

Read-only research; not investment advice.