Compare commits

..

No commits in common. "1a1dfc7d2a85fe01c568bb9b6e40750f487a8ade" and "7ebf0b48a4093b2f45a5a8488d8d576e03a4d016" have entirely different histories.

4 changed files with 3 additions and 8 deletions

View file

@ -217,8 +217,6 @@ class MainProcess:
except Exception as e: except Exception as e:
raise ValueError(f'Failed to initalize {module_name} plugin "{plugin_name}" - {e}') raise ValueError(f'Failed to initalize {module_name} plugin "{plugin_name}" - {e}')
self.bus_server.update_eventclasses()
# Run plugin definitions # Run plugin definitions
with progressbar(list(config.nodes), label=f"Executing {self.config_path}") as bar: with progressbar(list(config.nodes), label=f"Executing {self.config_path}") as bar:
for node in bar: for node in bar:

View file

@ -19,9 +19,6 @@ class WebsocketServerProcess:
self._send_queue = asyncio.Queue() self._send_queue = asyncio.Queue()
self.clients = set() self.clients = set()
self.update_eventclasses()
def update_eventclasses(self):
self._event_classes = get_subclasses(Event) self._event_classes = get_subclasses(Event)
# Data input (external application socket -> plugin/chat pipe) # Data input (external application socket -> plugin/chat pipe)
@ -48,7 +45,7 @@ class WebsocketServerProcess:
except websockets.exceptions.ConnectionClosedError: except websockets.exceptions.ConnectionClosedError:
pass pass
except asyncio.CancelledError: except asyncio.CancelledError:
await ws.close() ws.close()
finally: finally:
self.clients.discard(ws) self.clients.discard(ws)

View file

@ -4,7 +4,7 @@ import pickle
import os import os
import maya import maya
from httpx import HTTPError from httpx.exceptions import HTTPError
from owoify.owoify import owoify, Owoness from owoify.owoify import owoify, Owoness
from ovtk_audiencekit.core import PluginBase from ovtk_audiencekit.core import PluginBase

View file

@ -1,6 +1,6 @@
from argparse import ArgumentError from argparse import ArgumentError
from httpx import HTTPError from httpx.exceptions import HTTPError
from ovtk_audiencekit.core import PluginBase from ovtk_audiencekit.core import PluginBase
from ovtk_audiencekit.plugins.builtins.Command import Command, CommandTypes from ovtk_audiencekit.plugins.builtins.Command import Command, CommandTypes