Skip to content
Snippets Groups Projects
Commit 00b97c48 authored by Daniele Nicolodi's avatar Daniele Nicolodi
Browse files

bestellanforderung: Improve error message for unknown accounts

parent 62418c12
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,8 @@ def scrape_teilbescheinigung(filename, narration, date, accounts):
account = accounts.get(d.get('psp') or d.get('cost-center') or d.get('funds-center'))
if not account:
raise ValueError(f'unknown account in {filename}')
keys = ', '.join(d.get(x) for x in ('psp', 'cost-center', 'funds-center'))
raise ValueError(f'unknown account in {filename}: {keys}')
# The form does not contain amount information.
amount = data.Amount.from_string('0.00 EUR')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment