mirror of
https://github.com/progval/Limnoria.git
synced 2025-05-01 16:01:05 -05:00
Fix for bug #1029837, exception when calling google with unicode characters.
This commit is contained in:
parent
c873d0eabb
commit
b396a9f19e
@ -104,7 +104,8 @@ def search(log, queries, **kwargs):
|
|||||||
proxy = conf.supybot.protocols.http.proxy()
|
proxy = conf.supybot.protocols.http.proxy()
|
||||||
if proxy:
|
if proxy:
|
||||||
kwargs['http_proxy'] = proxy
|
kwargs['http_proxy'] = proxy
|
||||||
data = google.doGoogleSearch(' '.join(queries), **kwargs)
|
query = ' '.join(queries).decode('utf-8')
|
||||||
|
data = google.doGoogleSearch(query, **kwargs)
|
||||||
searches = conf.supybot.plugins.Google.state.searches() + 1
|
searches = conf.supybot.plugins.Google.state.searches() + 1
|
||||||
conf.supybot.plugins.Google.state.searches.setValue(searches)
|
conf.supybot.plugins.Google.state.searches.setValue(searches)
|
||||||
time = conf.supybot.plugins.Google.state.time() + data.meta.searchTime
|
time = conf.supybot.plugins.Google.state.time() + data.meta.searchTime
|
||||||
|
Loading…
x
Reference in New Issue
Block a user