Skip to content

Commit

Permalink
DDG: bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
GLolol authored and GLolol committed Dec 15, 2014
1 parent fb00466 commit ad8931a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DDG/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ def search(self, irc, msg, args, text):
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:
Expand Down

0 comments on commit ad8931a

Please sign in to comment.