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

ValueError: list.remove(x): x not in list #7905

Closed
xoriole opened this issue Feb 19, 2024 · 0 comments · Fixed by #7906
Closed

ValueError: list.remove(x): x not in list #7905

xoriole opened this issue Feb 19, 2024 · 0 comments · Fixed by #7906
Assignees
Milestone

Comments

@xoriole
Copy link
Contributor

xoriole commented Feb 19, 2024

In a situation where Tribler is in shutdown process and new instance of Tribler is opened, it occasionally raises the following error:

[tribler-core PID:958639] 2024-02-19 13:34:02,025 - WARNING - UDPEndpoint(97) - Dropping packet due to message formatting error: 'NoneType' object has no attribute 'call_exception_handler'
[tribler-core PID:958639] 2024-02-19 13:34:02,336 - INFO - EventsEndpoint(216) - Event stream was closed due to shutdown
[tribler-core PID:958639] 2024-02-19 13:34:02,342 - INFO - CoreExceptionHandler(89) - Processing unhandled error...
[tribler-core PID:958639] 2024-02-19 13:34:02,344 - ERROR - CoreExceptionHandler(99) - ValueError: list.remove(x): x not in list
Traceback (most recent call last):
  File "/home/user/tribler/src/tribler/core/components/restapi/rest/rest_manager.py", line 53, in error_middleware
    response = await handler(request)
  File "/home/sysadmin/test/3.8.4/venv/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 114, in impl
    return await handler(request)
  File "/home/user/tribler/src/tribler/core/components/restapi/rest/events_endpoint.py", line 218, in get_events
    self.events_responses.remove(response)
ValueError: list.remove(x): x not in list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant