Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gnucash2ledger: AttributeError: 'Split' object has no attribute 'getAccount' #4

Open
jmarshallidau opened this issue Aug 1, 2022 · 0 comments

Comments

@jmarshallidau
Copy link

jmarshallidau commented Aug 1, 2022

The attached patch addresses the following error.

Error

Traceback (most recent call last):
  File "/Users/john/rwfin/2022/gnucash2ledger.py", line 791, in <module>
    main()
  File "/Users/john/rwfin/2022/gnucash2ledger.py", line 785, in main
    print(convertor())
  File "/Users/john/rwfin/2022/gnucash2ledger.py", line 563, in __call__
    results += self.add_transactions()
  File "/Users/john/rwfin/2022/gnucash2ledger.py", line 532, in add_transactions
    results += str(t)
  File "/Users/john/rwfin/2022/gnucash2ledger.py", line 355, in __str__
    splits = "\n".join(str(s) for s in self.splits)
  File "/Users/john/rwfin/2022/gnucash2ledger.py", line 355, in <genexpr>
    splits = "\n".join(str(s) for s in self.splits)
  File "/Users/john/rwfin/2022/gnucash2ledger.py", line 241, in __str__
    destCmdty=self.getAccount().commodity,
AttributeError: 'Split' object has no attribute 'getAccount'. Did you mean: 'get_account'?

Patch

get_account.diff.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant