mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-19 08:32:55 +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:
|
while ',,' in result:
|
||||||
result = result.replace(',,', ',null,')
|
result = result.replace(',,', ',null,')
|
||||||
|
while '[,' in result:
|
||||||
|
result = result.replace('[,', '[')
|
||||||
data = json.loads(result)
|
data = json.loads(result)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user