Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'No JSON object could be decoded' for derpi command after recent derpibooru update #72

Open
derram opened this issue Apr 26, 2020 · 0 comments

Comments

@derram
Copy link

derram commented Apr 26, 2020

ERROR (<type 'exceptions.ValueError'>, ValueError('No JSON object could be decoded',), <traceback object at 0x7f5374cc85f0>)
File "main.py", line 150, in on_any
self.privmsg(event)
File "main.py", line 113, in privmsg
comm(event)
File "/home/derram/berry/commands.py", line 838, in command_derpi
data=dict(q=event.params, filter_id='56027')).json()['search']
File "/home/derram/.local/share/virtualenvs/berry-rOUv3q-G/lib/python2.7/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant