mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 08:32:03 +02:00
9 lines
334 B
Python
9 lines
334 B
Python
import bs4
|
|
import warnings
|
|
|
|
|
|
def patch_module():
|
|
if hasattr(bs4, 'XMLParsedAsHTMLWarning'):
|
|
# ofxparse use an html parser to parse ofx xml files and triggers a
|
|
# warning since bs4 4.11.0 https://github.com/jseutter/ofxparse/issues/170
|
|
warnings.filterwarnings('ignore', category=bs4.XMLParsedAsHTMLWarning)
|