Skip to content

Conversation

kristjanvalur
Copy link
Contributor

Normally asyncio ignored CancelledError exceptions in Tasks. asyncSlots create tasks, but the way that the error handler is implemented, by invoking the Future.result(), this CancelledError is re-raised and then logged by the QT core.
This PR silences CancelledErrors, such as can occur on the end of application or when cancelling long running operations.

@hosaka
Copy link
Collaborator

hosaka commented Jul 24, 2025

Thanks @kristjanvalur. Tested this with a snippet similar to #126.

@hosaka hosaka merged commit 3b78c45 into CabbageDevelopment:master Jul 24, 2025
73 checks passed
@kristjanvalur
Copy link
Contributor Author

Thanks @kristjanvalur. Tested this with a snippet similar to #126.

Cheers! I waded in, of course, without checking if this issue already existed :)

@kristjanvalur kristjanvalur deleted the cancelled branch July 24, 2025 09:57
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