Skip to content

Bug - ofx2csv does not handle instance in which there is no security_list. #5

@paulusbd

Description

@paulusbd

There is currently no check for SECURITY="NONE" in OSFHEADER

The OSFs I wish to convert have SECURITY="NONE", and I get

Traceback (most recent call last):
File "K:\Python\ofx2csv\qfx2csv.py", line 185, in
main()
File "K:\Python\ofx2csv\qfx2csv.py", line 179, in main
statement = get_statement_from_qfx(qfx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\Python\ofx2csv\qfx2csv.py", line 79, in get_statement_from_qfx
for security in qfx.security_list:
^^^^^^^^^^^^^^^^^
AttributeError: 'Ofx' object has no attribute 'security_list'

Python Info:

Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)] on win32

Run via command line under Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions