Skip to content

v0.12.0

Choose a tag to compare

@Dennis5882 Dennis5882 released this 26 Jul 06:18

Fixed

  • HTTP 200 with an {"error": ...} body is no longer reported as success.
    Story tables requested before the story calculation has run, and design checks
    whose preconditions aren't met, report the refusal under a 2xx status. These now
    raise MidasResultError. Pass MidasClient(raise_on_result_error=False) to get
    the raw body back instead.
  • Non-JSON responses stay inside the SDK's exception hierarchy. A proxy or
    SSL-inspection appliance answering with HTML used to raise a raw
    JSONDecodeError past except MidasAPIError; it now maps to a typed error,
    keeping MidasAuthError for an intercepted 401.
  • DbResource.items() no longer raises AttributeError on empty tables.
    A zero-row response can come back as {"message": ""}; items() returns {}.
  • midas_nx.__version__ matches the installed distribution. It had reported
    0.10.0 since v0.11.0.

Added

  • post.base.unwrap_table() — finds the HEAD/DATA table in a /post/TABLE
    response by shape. The top-level key is not stable across sessions, so indexing
    by TABLE_NAME is unsafe.
  • MidasResultError, exported from midas_nx.

Compatibility

get_table()'s return value is unchanged. The one behaviour change is the
MidasResultError raise described above.