Skip to content

SDK: two small hardening follow-ups from the #49 review #118

Description

@rapguit

Two optional one-liners deferred from the #49 review (merged in 11272ac — thanks again @AndreLFSMartins!):

  1. TS — in connections(), hoist the validateTimeout call above the try so an invalid timeout throws synchronously instead of being swallowed into the retry path.
  2. Python — in the matching connections() handler, narrow the bare except to except (ApiError, TimeoutError) so unrelated errors keep propagating.

@AndreLFSMartins since the timeout/cancellation work is yours, first refusal is yours if you'd like to finish the set — happy to review quickly. Otherwise we'll pick it up in an upcoming pass. No urgency; both are behavior-preserving for valid inputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions