diff options
| author | 2020-04-27 09:17:23 +0300 | |
|---|---|---|
| committer | 2020-04-27 09:17:23 +0300 | |
| commit | 07808f816aaf59beb2a3da6f115cd4b6577ea9c6 (patch) | |
| tree | 078723538ccf5848f80fd9652d48b037ebf9b171 | |
| parent | Improved `News` cog (diff) | |
Fixed `BeautifulSoup` parsing warning
Added `features="lxml"` to `BeautifulSoup` class creating to avoid warning.
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/news.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/news.py b/bot/cogs/news.py index be1284ca4..db273d68d 100644 --- a/bot/cogs/news.py +++ b/bot/cogs/news.py @@ -127,7 +127,7 @@ class News(Cog):          for maillist in constants.PythonNews.mail_lists:              async with self.bot.http_session.get(RECENT_THREADS_TEMPLATE.format(name=maillist)) as resp: -                recents = BeautifulSoup(await resp.text()) +                recents = BeautifulSoup(await resp.text(), features="lxml")              for thread in recents.html.body.div.find_all("a", href=True):                  # We want only these threads that have identifiers  |