Skip to content

Commit

Permalink
fix: filter out XMLParsedAsHTMLWarning from ofxparse. redstreet#40
Browse files Browse the repository at this point in the history
  • Loading branch information
redstreet authored and scanta2 committed Oct 13, 2023
1 parent f795bbb commit a4b7851
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions beancount_reds_importers/libreader/ofxreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
from collections import namedtuple
from beancount.ingest import importer
from beancount_reds_importers.libreader import reader
from bs4.builder import XMLParsedAsHTMLWarning
import warnings
warnings.filterwarnings("ignore", category=XMLParsedAsHTMLWarning)


class Importer(reader.Reader, importer.ImporterProtocol):
Expand Down
3 changes: 3 additions & 0 deletions beancount_reds_importers/util/ofx_summarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
import sys
from collections import defaultdict
from ofxparse import OfxParser
from bs4.builder import XMLParsedAsHTMLWarning
import warnings
warnings.filterwarnings("ignore", category=XMLParsedAsHTMLWarning)


def analyze(filename, ttype='dividends', pdb_explore=False):
Expand Down

0 comments on commit a4b7851

Please sign in to comment.