Skip to content

Commit

Permalink
Fix terminology
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSpen210 committed Jun 18, 2024
1 parent 68a414c commit 8fae545
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,22 +206,22 @@ 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)
else:
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)

Expand Down

0 comments on commit 8fae545

Please sign in to comment.