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