-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
task hangs when another exception is raised when options.waiter is cancelled. #634
Comments
I'm not sure this is an AsyncSSH problem. Even though you are canceling main_task(), you have a catch-all "except Exception" in there, which I think will end up capturing the CancelledError from your As for the secondary error, that's because you are successfully cancelling the I haven't tested it, but if you put in an |
Thanks for the swift reply, here are a few comments
From what I know, this used to be the early behavior of
Omitting |
Sorry - it looks like I missed your last post here. Were you able to resolve this issue? |
Asyncssh 2.14.1
Linux mint 21.3 (ubuntu jammy)
Python 3.12.0
The issue is reproducable using the following code
Running this code results in this traceback. Which is not odd, but it hangs there indefinitely.
When I ran the debugger, the main_task is not cancelled, and still runs the loop.
The text was updated successfully, but these errors were encountered: