[RSS] Add shutup to quiet feedparser warnings
This commit is contained in:
@@ -5,6 +5,6 @@
|
|||||||
"description": "Read RSS feeds.",
|
"description": "Read RSS feeds.",
|
||||||
"tags": ["rss"],
|
"tags": ["rss"],
|
||||||
"permissions": ["embed_links"],
|
"permissions": ["embed_links"],
|
||||||
"requirements": ["bs4", "feedparser>=6.0.0", "webcolors==1.3"],
|
"requirements": ["bs4", "feedparser>=6.0.0", "webcolors==1.3", "shutup"],
|
||||||
"end_user_data_statement": "This cog does not persistently store data or metadata about users."
|
"end_user_data_statement": "This cog does not persistently store data or metadata about users."
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import imghdr
|
|||||||
import io
|
import io
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
import shutup
|
||||||
import time
|
import time
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from types import MappingProxyType, SimpleNamespace
|
from types import MappingProxyType, SimpleNamespace
|
||||||
@@ -29,7 +30,7 @@ IPV4_RE = re.compile("\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}")
|
|||||||
IPV6_RE = re.compile("([a-f0-9:]+:+)+[a-f0-9]+")
|
IPV6_RE = re.compile("([a-f0-9:]+:+)+[a-f0-9]+")
|
||||||
|
|
||||||
|
|
||||||
__version__ = "1.8.1"
|
__version__ = "1.8.2"
|
||||||
|
|
||||||
|
|
||||||
class RSS(commands.Cog):
|
class RSS(commands.Cog):
|
||||||
@@ -49,6 +50,8 @@ class RSS(commands.Cog):
|
|||||||
|
|
||||||
self._headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0"}
|
self._headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0"}
|
||||||
|
|
||||||
|
shutup.please()
|
||||||
|
|
||||||
async def red_delete_data_for_user(self, **kwargs):
|
async def red_delete_data_for_user(self, **kwargs):
|
||||||
"""Nothing to delete"""
|
"""Nothing to delete"""
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user