Commit 19708e42 authored by ntome's avatar ntome

[paypal] fix some py2-only behavior

parent 85d24037
......@@ -143,6 +143,7 @@ class Paypal(LoginBrowser):
'endDate': e,
}
# The response is sometimes not the one we expect.
exc = None
for i in range(3):
try:
self.location(
......@@ -155,7 +156,8 @@ class Paypal(LoginBrowser):
return iter([])
except KeyError as e:
self.logger.warning("retrying to get activity ...")
raise e
exc = e
raise exc
@need_login
def get_download_history(self, account, step_min=None, step_max=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment