Skip to content

Commit ffc5639

Browse files
committed
Removed warning
1 parent 25883ce commit ffc5639

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

satcfdi/csf/__init__.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
import warnings
12
from datetime import datetime
23

34
import requests
4-
from bs4 import BeautifulSoup
5+
from bs4 import BeautifulSoup, XMLParsedAsHTMLWarning
56

67
from .. import __version__
78
from ..catalogs import select_all
89
from ..exceptions import ResponseError
910
from ..models import Code
1011
from ..sat_requests_utils import SSLAdapter
1112

13+
warnings.filterwarnings("ignore", category=XMLParsedAsHTMLWarning)
14+
1215

1316
def retrieve(rfc: str, id_cif: str):
1417
data = _request_constancia(rfc, id_cif)

0 commit comments

Comments
 (0)