From 42d6e7034c63efaa1c2d6b341e5422fd0cb3f1b1 Mon Sep 17 00:00:00 2001 From: Baptiste Delpey Date: Wed, 10 Jun 2015 14:18:07 +0200 Subject: [PATCH] change detection of pro or perso account_type --- modules/paypal/browser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/paypal/browser.py b/modules/paypal/browser.py index 2c94cb30..3c372024 100644 --- a/modules/paypal/browser.py +++ b/modules/paypal/browser.py @@ -55,7 +55,7 @@ class Paypal(Browser): 'https://\w+.paypal.com/businessexp/summary': ProHistoryPage, 'https://\w+.paypal.com/webapps/business/activity\?.*': ProHistoryPage, 'https://\w+.paypal.com/myaccount/activity/.*': (PartHistoryPage, 'json'), - 'https://\w+.paypal.com/myaccount/': ProHistoryPage, + 'https://\w+.paypal.com/myaccount/': HomePage, } DEFAULT_TIMEOUT = 60 @@ -78,7 +78,7 @@ class Paypal(Browser): 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(ProHistoryPage): self.account_type = "pro" else: self.account_type = "perso"