detect when there is no operations
This commit is contained in:
parent
677ce3961d
commit
91401fca14
1 changed files with 6 additions and 1 deletions
|
|
@ -227,7 +227,12 @@ class TransactionsPage(BasePage):
|
|||
if len(tables) == 0:
|
||||
tables = self.document.getroot().cssselect('table.table-detail')
|
||||
if len(tables) == 0:
|
||||
raise BrokenPageError('Unable to find table?')
|
||||
try:
|
||||
self.parser.select(self.document.getroot(), 'td.no-result', 1)
|
||||
except BrokenPageError:
|
||||
raise BrokenPageError('Unable to find table?')
|
||||
else:
|
||||
return
|
||||
|
||||
for tr in tables[0].xpath('.//tr'):
|
||||
tds = tr.findall('td')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue