don't try to recover transaction from DAT account

This commit is contained in:
Vincent Paredes 2015-04-20 14:16:53 +02:00 committed by Romain Bignon
commit 3ca0e5c7d0

View file

@ -253,6 +253,9 @@ class TransactionsPage(BasePage):
self.browser.location(form.attrib['action'], urllib.urlencode(args))
def get_history(self):
#DAT account can't have transaction
if self.document.xpath('//table[@id="table-dat"]'):
return
tables = self.document.xpath('//table[@id="table-detail-operation"]')
if len(tables) == 0:
tables = self.document.xpath('//table[@id="table-detail"]')