mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Google: Filter out [, before attempting to interpret Googles response as json.
This commit is contained in:
parent
657b76d174
commit
599f80ec5f
@ -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