fix crash on new accounts list (closes #1654)

This commit is contained in:
Romain Bignon 2014-11-10 19:11:29 +01:00
commit 49613aa1f8
2 changed files with 2 additions and 1 deletions

View file

@ -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)