Skip to content

Still seeing KeyError: 'XXX.....' after 2.24.0 bug fix #5119

@alydersen

Description

@alydersen

First Check

  • I added a very descriptive title here.
  • This is not a Q&A. I am sure something is wrong with NiceGUI or its documentation.
  • I used the GitHub search to find a similar issue and came up empty.

Example Code

Description

In #5090 the issue about KeyError was reported. After applying the latest version 2.24.0 I'm still seeing these issues in the log:

'd7cbb5c1-e428-4050-a20f-94c4a0f8b49b'
Traceback (most recent call last):
  File ".../.venv/lib/python3.13/site-packages/nicegui/background_tasks.py", line 77, in _handle_task_result
    task.result()
    ~~~~~~~~~~~^^
  File ".../.venv/lib/python3.13/site-packages/nicegui/client.py", line 292, in delete_content
    self.delete()
    ~~~~~~~~~~~^^
  File ".../.venv/lib/python3.13/site-packages/nicegui/client.py", line 356, in delete
    del Client.instances[self.id]
        ~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: 'd7cbb5c1-e428-4050-a20f-94c4a0f8b49b'

NiceGUI Version

2.24.0

Python Version

3.13.3

Browser

Other

Operating System

macOS

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    analysisStatus: Requires team/community inputbugType/scope: A problem that needs fixing

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions