mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 08:02:49 +01:00
Merge pull request #514 from Hoaas/testing
Google: Filter out [, before attempting to interpret Googles response as json
This commit is contained in:
commit
f0a9db6d07
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user