use a better workaround
This commit is contained in:
parent
aabd8a2f2a
commit
6deaa9ac44
1 changed files with 8 additions and 2 deletions
|
|
@ -80,6 +80,11 @@ class Ing(BaseBrowser):
|
|||
|
||||
return None
|
||||
|
||||
def viewing_html(self):
|
||||
# To prevent unknown mimetypes sent by server, we assume we
|
||||
# are always on a HTML document.
|
||||
return True
|
||||
|
||||
def get_history(self, id):
|
||||
account = self.get_account(id)
|
||||
# The first and the second letter of the label are the account type
|
||||
|
|
@ -96,6 +101,7 @@ class Ing(BaseBrowser):
|
|||
yield transaction
|
||||
if self.page.islast():
|
||||
return
|
||||
|
||||
# XXX server sends an unknown mimetype, we overload viewing_html() above to
|
||||
# prevent this issue.
|
||||
self.page.next_page()
|
||||
# The answer is not a valide html page for mechanize, we have to be tolerant
|
||||
self._factory.is_html = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue