mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01: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()
|
||||
if 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
|
||||
conf.supybot.plugins.Google.state.searches.setValue(searches)
|
||||
time = conf.supybot.plugins.Google.state.time() + data.meta.searchTime
|
||||
|
Loading…
Reference in New Issue
Block a user