aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-05-03 07:07:13 +0300
committerGravatar GitHub <[email protected]>2020-05-03 07:07:13 +0300
commit3a446f4419d8812df1d3892e43b50dd87fc26708 (patch)
tree5756902a077ff4473ad26100df188605ea77362e
parentDefine encoding in `News` cog `await resp.text()` using (diff)
Fix `News` cog maillist news posting no threads check comment
Co-authored-by: Joseph Banks <[email protected]>
-rw-r--r--bot/cogs/news.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/cogs/news.py b/bot/cogs/news.py
index c716f662b..fc79f2fdc 100644
--- a/bot/cogs/news.py
+++ b/bot/cogs/news.py
@@ -128,7 +128,9 @@ class News(Cog):
async with self.bot.http_session.get(RECENT_THREADS_TEMPLATE.format(name=maillist)) as resp:
recents = BeautifulSoup(await resp.text(), features="lxml")
- # When response have <p>, this mean that no threads available
+ # When a <p> element is present in the response then the mailing list
+ # has not had any activity during the current month, so therefore it
+ # can be ignored.
if recents.p:
continue