From 8fae5459fc1fd840c8627862d71fd719da24a075 Mon Sep 17 00:00:00 2001 From: Spencer Brown Date: Tue, 18 Jun 2024 16:02:29 +1000 Subject: [PATCH] Fix terminology --- src/config/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/__init__.py b/src/config/__init__.py index e0f15018e..6b51833a7 100644 --- a/src/config/__init__.py +++ b/src/config/__init__.py @@ -206,7 +206,7 @@ async def apply_conf(self, typ: type[Data], *, data_id: str = '') -> None: data = self._current[typ][data_id] channel = self._apply_channel[typ, data_id] except KeyError: - LOGGER.warning('{}[{!r}] has no UI callback!', info.name, data_id) + LOGGER.warning('{}[{!r}] has no UI channel!', info.name, data_id) else: assert isinstance(data, typ), info await channel.send(data) @@ -214,14 +214,14 @@ async def apply_conf(self, typ: type[Data], *, data_id: str = '') -> None: try: data_map = self._current[typ] except KeyError: - LOGGER.warning('{}[:] has no UI callback!', info.name) + LOGGER.warning('{}[:] has no UI channel!', info.name) return async with trio.open_nursery() as nursery: for dat_id, data in data_map.items(): try: channel = self._apply_channel[typ, dat_id] except KeyError: - LOGGER.warning('{}[{!r}] has no UI callback!', info.name, dat_id) + LOGGER.warning('{}[{!r}] has no UI channel!', info.name, dat_id) else: nursery.start_soon(channel.send, data)