diff options
| author | 2021-08-31 03:59:19 +0200 | |
|---|---|---|
| committer | 2021-08-31 03:59:19 +0200 | |
| commit | 23a3e5e53e1c9229433439de90e423499a9742b7 (patch) | |
| tree | 648f708ca503d92dc7f794cbea97895bd5cc1b88 | |
| parent | Delete stale item counters when clearing doc cache (diff) | |
Raise for status to prevent parsing of invalid pages
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/info/doc/_batch_parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/info/doc/_batch_parser.py b/bot/exts/info/doc/_batch_parser.py index cadf1e121..62b04b649 100644 --- a/bot/exts/info/doc/_batch_parser.py +++ b/bot/exts/info/doc/_batch_parser.py @@ -107,7 +107,7 @@ class BatchParser: if doc_item not in self._item_futures and doc_item not in self._queue: self._item_futures[doc_item].user_requested = True - async with bot.instance.http_session.get(doc_item.url) as response: + async with bot.instance.http_session.get(doc_item.url, raise_for_status=True) as response: soup = await bot.instance.loop.run_in_executor( None, BeautifulSoup, |