Skip to content

ValueError when deleting a field #362

@pascalzauberzeug

Description

@pascalzauberzeug

When you delete a field with the delete button on the main page, this error occurs:

rosys_1         | 2025-08-06 16:59:51.259 [ERROR] rosys/event.py:85: could not emit listener=EventListener(callback=<function refreshable.__getattribute__.<locals>.refresh at 0xffff683e13a0>, filepath='/app/rosys/event.py', line=49)
rosys_1         | Traceback (most recent call last):
rosys_1         |   File "/app/rosys/event.py", line 77, in emit
rosys_1         |     result = listener.callback(*args, **kwargs)
rosys_1         |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rosys_1         |   File "/home/zauberzeug/.local/lib/python3.12/site-packages/nicegui/functions/refreshable.py", line 81, in refresh
rosys_1         |     attribute(*args, **kwargs)
rosys_1         |   File "/home/zauberzeug/.local/lib/python3.12/site-packages/nicegui/functions/refreshable.py", line 106, in refresh
rosys_1         |     result = target.run(self.func)
rosys_1         |              ^^^^^^^^^^^^^^^^^^^^^
rosys_1         |   File "/home/zauberzeug/.local/lib/python3.12/site-packages/nicegui/functions/refreshable.py", line 50, in run
rosys_1         |     return func(self.instance, *self.args, **self.kwargs)
rosys_1         |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rosys_1         |   File "/app/field_friend/interface/components/operation.py", line 191, in field_setting
rosys_1         |     self.field_select = ui.select(
rosys_1         |                         ^^^^^^^^^^
rosys_1         |   File "/home/zauberzeug/.local/lib/python3.12/site-packages/nicegui/elements/select.py", line 64, in __init__
rosys_1         |     super().__init__(label=label, options=options, value=value, on_change=on_change, validation=validation)
rosys_1         |   File "/home/zauberzeug/.local/lib/python3.12/site-packages/nicegui/elements/mixins/label_element.py", line 14, in __init__
rosys_1         |     super().__init__(**kwargs)
rosys_1         |   File "/home/zauberzeug/.local/lib/python3.12/site-packages/nicegui/elements/mixins/validation_element.py", line 18, in __init__
rosys_1         |     super().__init__(**kwargs)
rosys_1         |   File "/home/zauberzeug/.local/lib/python3.12/site-packages/nicegui/elements/choice_element.py", line 20, in __init__
rosys_1         |     raise ValueError(f'Invalid value: {value}')
rosys_1         | ValueError: Invalid value: fff9e51d-a18f-4771-b637-75a2119ca4bf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions