fix crash on new accounts list (closes #1654)
This commit is contained in:
parent
7998230dff
commit
49613aa1f8
2 changed files with 2 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ class NewAccountPage(Page):
|
|||
# Primary currency account
|
||||
primary_account = Account()
|
||||
primary_account.type = Account.TYPE_CHECKING
|
||||
balance = self.parser.tocleanstring(content.xpath('.//div[@class="col-md-6 available "]')[0])
|
||||
balance = self.parser.tocleanstring(content.xpath('.//div[contains(@class, "col-md-6 available")]')[0])
|
||||
primary_account.currency = Account.get_currency(balance)
|
||||
primary_account.id = unicode(primary_account.currency)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue