Skip to content

Catch and wrap unexpected connection errors - #45

Merged
tpoliaw merged 1 commit into
mainfrom
unknown-connect-errors
Jan 7, 2026
Merged

tpoliaw merged 1 commit into
mainfrom
unknown-connect-errors

Conversation

@tpoliaw

@tpoliaw tpoliaw commented Dec 12, 2025

Copy link
Copy Markdown
Contributor

When trying to reconnect, if the connect loop (in _on_disconnected)
encounters an unexpected exception, it exits the loop and the client
never re-connects. Wrapping any other exceptions with the expected
ConnectFailedException allows the reconnect to continue.

When trying to reconnect, if the connect loop (in _on_disconnected)
encounters an unexpected exception, it exits the loop and the client
never re-connects. Wrapping any other exceptions with the expected
ConnectFailedException allows the reconnect to continue.
@codecov

codecov Bot commented Dec 12, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.07%. Comparing base (1a020f3) to head (a470fdd).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/bluesky_stomp/messaging.py 75.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #45      +/-   ##
==========================================
- Coverage   94.68%   94.07%   -0.61%     
==========================================
  Files           6        6              
  Lines         282      287       +5     
==========================================
+ Hits          267      270       +3     
- Misses         15       17       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@abbiemery abbiemery left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Demo'd in person, probably add test.

@tpoliaw
tpoliaw merged commit 7e53ef9 into main Jan 7, 2026
@tpoliaw
tpoliaw deleted the unknown-connect-errors branch January 7, 2026 09:22
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