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
|
|
@ -46,6 +46,7 @@ class Paypal(Browser):
|
||||||
'https://www.paypal.com/webapps/business/\?nav=0.0': NewHomePage,
|
'https://www.paypal.com/webapps/business/\?nav=0.0': NewHomePage,
|
||||||
'https://www.paypal.com/businessexp/money': NewAccountPage,
|
'https://www.paypal.com/businessexp/money': NewAccountPage,
|
||||||
'https://www.paypal.com/webapps/business/activity\?.*': NewHistoryPage,
|
'https://www.paypal.com/webapps/business/activity\?.*': NewHistoryPage,
|
||||||
|
'https://www.paypal.com/myaccount/': NewHistoryPage,
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFAULT_TIMEOUT = 30 # CSV export is slow
|
DEFAULT_TIMEOUT = 30 # CSV export is slow
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ class NewAccountPage(Page):
|
||||||
# Primary currency account
|
# Primary currency account
|
||||||
primary_account = Account()
|
primary_account = Account()
|
||||||
primary_account.type = Account.TYPE_CHECKING
|
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.currency = Account.get_currency(balance)
|
||||||
primary_account.id = unicode(primary_account.currency)
|
primary_account.id = unicode(primary_account.currency)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue