Google: Filter out [, before attempting to interpret Googles response as json.

This commit is contained in:
Terje Hoås 2013-09-25 10:18:10 +02:00
parent 657b76d174
commit 599f80ec5f

View File

@ -267,6 +267,8 @@ class Google(callbacks.PluginRegexp):
while ',,' in result:
result = result.replace(',,', ',null,')
while '[,' in result:
result = result.replace('[,', '[')
data = json.loads(result)
try: