Skip to content

Fix #611 - stop propagating user exceptions to the connection management layer#1

Closed
seratch wants to merge 12 commits intonew-sync-modefrom
new-sync-mode-issue-611
Closed

Fix #611 - stop propagating user exceptions to the connection management layer#1
seratch wants to merge 12 commits intonew-sync-modefrom
new-sync-mode-issue-611

Conversation

@seratch
Copy link
Owner

@seratch seratch commented Apr 30, 2020

Summary

This pull request fixes slackapi#611 by stopping the propagation of user exceptions to _connect_and_read() method. Raised exceptions to _connect_and_read() results in WebSocket connection closure. That is not intended in the scenarios where developers don't handle (or forget handling) exceptions in their methods decorated by @RTMClient.run_on.

Requirements (place an x in each [ ])

seratch added 10 commits April 30, 2020 17:03
* slackapi#530 Fixed by changing _execute_in_thread to be a coroutine
* slackapi#569 Resolved by removing a blocking loop (while future.running())
* slackapi#645 WebClient(run_async=False) no longer depends on asyncio by default
* slackapi#633 WebClient(run_async=False) doesn't internally depend on aiohttp
* slackapi#631 When run_async=True, RTM listner can be a normal function and WebClient is free from the event loop
* slackapi#630 WebClient no longer depends on aiohttp when run_async=False
* slackapi#497 Fixed when run_async=False / can be closed as we don't support run_async=True for this use case (in Flask)
@seratch seratch force-pushed the new-sync-mode-issue-611 branch from 469a52b to 48c6799 Compare April 30, 2020 08:46
@seratch seratch force-pushed the new-sync-mode branch 9 times, most recently from e0aabcc to c8866d4 Compare May 14, 2020 04:36
@seratch seratch closed this Oct 2, 2020
@seratch seratch deleted the new-sync-mode-issue-611 branch December 1, 2020 11:09
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.

1 participant