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

fix:handle unloaded namespaces #51

Merged
merged 1 commit into from
Sep 18, 2024
Merged

fix:handle unloaded namespaces #51

merged 1 commit into from
Sep 18, 2024

Commits on Sep 18, 2024

  1. fix:handle unloaded namespaces

    happens every boot
    ```
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]: 2024-09-18 19:45:11.325 - gui - ovos_gui_plugin_shell_companion:handle_remove_namespace:84 - INFO - Got Clear Namespace Event In Skill
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]: [E 240918 19:45:11 _base:342] exception calling callback for <Future at 0xffff8463a250 state=finished raised IndexError>
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]:     Traceback (most recent call last):
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]:       File "/usr/lib/python3.11/concurrent/futures/_base.py", line 340, in _invoke_callbacks
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]:         callback(self)
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]:       File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_executor.py", line 57, in _callback
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]:         self.emit("error", exc)
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]:       File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 118, in emit
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]:         self._emit_handle_potential_error(event, args[0] if args else None)
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]:       File "/home/ovos/.venv/lib/python3.11/site-packages/pyee/_base.py", line 88, in _emit_handle_potential_error
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]:         raise error
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]:       File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]:         result = self.fn(*self.args, **self.kwargs)
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]:       File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_gui/namespace.py", line 1014, in handle_namespace_global_back
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]:         namespace_name = self.active_namespaces[0].skill_id
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]:                          ~~~~~~~~~~~~~~~~~~~~~~^^^
    Sep 18 19:45:11 OpenVoiceOS ovos-gui-websocket[793]:     IndexError: list index out of range
    ```
    JarbasAl committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    7f024a7 View commit details
    Browse the repository at this point in the history