axjasf / PersonalFinanceCategorizer_WebApp

0 stars 0 forks source link

[BUG] AM/Edit Account: Value Error: Bank Account is not in list #20

Open axjasf opened 1 month ago

axjasf commented 1 month ago

With the current sample data.

ValueError: 'Bank Account' is not in list
Traceback:
File "/Users/axeljanssen/Documents/GitHub/PersonalFinanceCategorizer_WebApp/.venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
File "/Users/axeljanssen/Documents/GitHub/PersonalFinanceCategorizer_WebApp/pages/05_Account_Management.py", line 48, in <module>
    index=ACCOUNT_TYPES.index(edit_account['type']),
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
image image
axjasf commented 1 month ago

Switching from Account 1 to 2 in the current sample data takes the error away.

Type is "Bank Account" - so perhaps that's the issue?

image