From cc8a55f0621f77482cf015175d87ab4dff451cbb Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Mon, 15 Mar 2021 09:50:44 -0700 Subject: [PATCH] [RSS] Fetch channel fix part 2 --- rss/rss.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rss/rss.py b/rss/rss.py index 3f7a3a8..bdf1d49 100644 --- a/rss/rss.py +++ b/rss/rss.py @@ -25,7 +25,7 @@ from .tag_type import INTERNAL_TAGS, VALID_IMAGES, TagType log = logging.getLogger("red.aikaterna.rss") -__version__ = "1.4.3" +__version__ = "1.4.4" class RSS(commands.Cog): @@ -310,7 +310,7 @@ class RSS(commands.Cog): return website - def _get_channel_object(self, channel_id: int): + async def _get_channel_object(self, channel_id: int): """Helper for rss feed loop.""" channel = self.bot.get_channel(channel_id) if not channel: @@ -1504,7 +1504,7 @@ class RSS(commands.Cog): config_data = await self.config.all_channels() total_index = 0 for channel_id, channel_feed_list in config_data.items(): - channel = self._get_channel_object(channel_id) + channel = await self._get_channel_object(channel_id) if not channel: log.info( f"Response channel {channel_id} not found, forbidden to access, or no perms to send messages, removing channel from config"