fix crash on old website and inform users
This commit is contained in:
parent
8950d2539f
commit
21cda323c8
1 changed files with 4 additions and 1 deletions
|
|
@ -74,7 +74,10 @@ class Paypal(Browser):
|
||||||
self.location('/myaccount')
|
self.location('/myaccount')
|
||||||
self.account_type = "perso"
|
self.account_type = "perso"
|
||||||
else:
|
else:
|
||||||
self.location('/webapps/business/?nav=0.0')
|
if not self.page or self.page.document.xpath('.//a[contains(@class, "try-now-bttn")]'):
|
||||||
|
raise BrowserIncorrectPassword("Please update your account to the new PayPal website to continue to use our services")
|
||||||
|
else:
|
||||||
|
self.location('/webapps/business/?nav=0.0')
|
||||||
if self.is_on_page(HomePage):
|
if self.is_on_page(HomePage):
|
||||||
self.account_type = "pro"
|
self.account_type = "pro"
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue