diff options
| author | 2020-05-03 07:07:13 +0300 | |
|---|---|---|
| committer | 2020-05-03 07:07:13 +0300 | |
| commit | 3a446f4419d8812df1d3892e43b50dd87fc26708 (patch) | |
| tree | 5756902a077ff4473ad26100df188605ea77362e | |
| parent | Define 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]>
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/news.py | 4 | 
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 | 
