Skip to content

IPykernel 6.9.0 generates error when Python errors are returned after execution #860

Closed
@ccordoba12

Description

This is very simple to reproduce in QtConsole. After executing something like this:

imagen

you'll see the following traceback in the terminal where it was started

Traceback (most recent call last):
  File "/home/carlos/miniconda3/envs/py310/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 461, in dispatch_queue
    await self.process_one()
  File "/home/carlos/miniconda3/envs/py310/lib/python3.10/site-packages/ipykernel/kernelbase.py", line 450, in process_one
    await dispatch(*args)
TypeError: object NoneType can't be used in 'await' expression

I can't reproduce this in 6.8.0 or older versions and it's not related to the Python version I'm using (it was also reproduced in 3.8, as reported here).

I'd say this was introduced in PR #853, but I don't know how to fix it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions