austax: Fail gracefully when PAGYW account does not exist
This commit is contained in:
parent
a3ef647a2d
commit
4bdb31c35e
@ -80,7 +80,7 @@ def make_tax_transactions():
|
|||||||
# PAYG withholding
|
# PAYG withholding
|
||||||
for account_name, kinds in account_configurations.items():
|
for account_name, kinds in account_configurations.items():
|
||||||
if 'austax.paygw' in kinds:
|
if 'austax.paygw' in kinds:
|
||||||
if accounts[account_name].quantity != 0:
|
if account_name in accounts and accounts[account_name].quantity != 0:
|
||||||
# Transfer balance to Income Tax Control
|
# Transfer balance to Income Tax Control
|
||||||
transactions.append(Transaction(
|
transactions.append(Transaction(
|
||||||
dt=dt,
|
dt=dt,
|
||||||
|
Loading…
Reference in New Issue
Block a user