force daemon account creation

This commit is contained in:
dsc 2019-02-18 20:21:34 +01:00
parent 68f32fd664
commit 917dcb58ce
No known key found for this signature in database
GPG Key ID: 7BBC83D7A8810AAB
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ class Daemon:
def get_transfers_in(self, proposal):
account = self.get_accounts(proposal.id)
if not account and proposal.addr_donation:
account = self.create_account(proposal.id)
account = self.get_accounts(proposal.id)
if not account:
raise Exception('wallet error; pid not found found')
index = account['account_index']