Skip to content

Temporal fix for typing indicator#209

Merged
axelsrz merged 2 commits intomainfrom
users/axsuarez/typing-indicator-temporal-fix
Oct 28, 2025
Merged

Temporal fix for typing indicator#209
axelsrz merged 2 commits intomainfrom
users/axsuarez/typing-indicator-temporal-fix

Conversation

@axelsrz
Copy link
Member

@axelsrz axelsrz commented Oct 28, 2025

This pull request makes a minor change to the typing indicator loop in typing_indicator.py. The change removes the re-raising of the asyncio.CancelledError exception after logging its cancellation, which prevents the exception from propagating further.

  • Exception handling: The asyncio.CancelledError is now only logged and not re-raised in the _typing_loop method of typing_indicator.py, simplifying error handling.

@axelsrz axelsrz requested a review from a team as a code owner October 28, 2025 18:43
Copilot AI review requested due to automatic review settings October 28, 2025 18:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves asyncio task cancellation handling in the TypingIndicator class by removing an unnecessary re-raise of CancelledError. The change aligns with Python 3.8+ best practices where catching and not re-raising CancelledError indicates that cancellation is expected and properly handled.

  • Removed raise statement from CancelledError handler in _typing_loop method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@axelsrz axelsrz merged commit 488afb3 into main Oct 28, 2025
10 checks passed
@axelsrz axelsrz deleted the users/axsuarez/typing-indicator-temporal-fix branch October 28, 2025 18:49
axelsrz added a commit that referenced this pull request Oct 28, 2025
axelsrz added a commit that referenced this pull request Oct 28, 2025
* channel check changes needed for M365Copilot (#208)

* channel check changes needed for M365Copilot

* improving main channel check syntax

* Temporal fix for typing indicator (#209)
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.

3 participants