mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-27 05:21:09 -05:00
parent
f627837496
commit
be3112197b
@ -76,8 +76,9 @@ class DDG(callbacks.Plugin):
|
||||
tables = soup.find_all('table')
|
||||
|
||||
# Sometimes there is an extra table for page navigation
|
||||
webresults = tables[2].find_all('tr')
|
||||
if not webresults:
|
||||
try:
|
||||
webresults = tables[2].find_all('tr')
|
||||
except IndexError:
|
||||
webresults = tables[1].find_all('tr')
|
||||
if webresults:
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user