Merge branch 'fix-MarkupResemblesLocatorWarning' into 'master'

avoid "MarkupResemblesLocatorWarning" warning, as we always pass HTML fragment

See merge request chaica/feed2toot!24
This commit is contained in:
Matija Nalis 2024-02-16 02:13:52 +00:00
commit e1b281562e
1 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,8 @@ import sys
import re
# external liraries imports
from bs4 import BeautifulSoup
import warnings
from bs4 import BeautifulSoup, MarkupResemblesLocatorWarning
# app libraries imports
from feed2toot.addtags import AddTags
@ -68,6 +69,8 @@ class Main:
def main(self):
'''The main function'''
warnings.filterwarnings("ignore", category=MarkupResemblesLocatorWarning)
clip = CliParse()
clioptions = clip.options
self.setup_logging(clioptions)