Skip to content

Conversation

joaquin-borggio-lc
Copy link

@joaquin-borggio-lc joaquin-borggio-lc commented Sep 30, 2025

Ending an invalid stream leads to KeyError. This PR leverages a helper function that already exists to properly handle errors and raise a more informative exception.

@joaquin-borggio-lc joaquin-borggio-lc changed the title fix: Raise more informative error instead of generic KeyError on end_… fix: Raise more informative error instead of generic KeyError on end_stream Sep 30, 2025
@Kriechi
Copy link
Member

Kriechi commented Oct 4, 2025

LGTM! Please add a changelog entry and tests to cover the new behaviour.

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.

2 participants