trdlo / client175

Automatically exported from code.google.com/p/client175
GNU General Public License v3.0
0 stars 0 forks source link

lyricwiki.py is throwing error around line 52 #42

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
problem is contentcontent["query"]["search"] doesn't exist - because the return 
is 

{u'error': {u'info': u'text search is disabled', u'code': 
u'srsearch-text-disabled'}}

My solution was to just ignore the exception

    try:
        for t in content["query"]["search"]:
                titles.append(t["title"])
    except:
        pass

Original issue reported on code.google.com by d...@documentopia.com on 16 Jun 2012 at 3:39

GoogleCodeExporter commented 8 years ago
Hey,

I'm a total noob in programming. Is it possible that someone can add the 
correct code change?

thanks

Original comment by nairesha...@gmail.com on 22 Jun 2012 at 8:04

GoogleCodeExporter commented 8 years ago
r140 seems to have fixed this issue.

Original comment by duncanga...@gmail.com on 24 Jun 2012 at 11:06