Skip to content
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

KeyboardInterrupt causes AttributeError: 'NoneType' object has no attribute 'start_soon' #134

Closed
DRMacIver opened this issue Jan 12, 2024 · 0 comments · Fixed by #139
Closed

Comments

@DRMacIver
Copy link

Running on trio-asyncio==0.13.0, a badly timed Ctrl-C can cause the following output:

Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f67a0b53970>
Exception in default exception handler
Traceback (most recent call last):
  File "/usr/lib64/python3.9/asyncio/base_events.py", line 1779, in call_exception_handler
    self.default_exception_handler(context)
  File "/home/ec2-user/.local/lib/python3.9/site-packages/trio_asyncio/_async.py", line 50, in default_exception_handler
    self._nursery.start_soon(propagate_asyncio_error)
AttributeError: 'NoneType' object has no attribute 'start_soon'

I'm aware that tracking down every way a badly timed signal can break your code is a thankless task, and this doesn't matter very much to me at all, just mentioning this in case it's of interest. As far as I'm concerned, please feel free to ignore this report.

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 a pull request may close this issue.

1 participant