theodo/toilet — Issue #1: "No JSON object could be decoded"
Author: alixc
Created: 2012-02-09 09:24:21+00:00
State: open

I ran indicator.py
After a while, error displayed :

> File "toilet/indicator.py", line 109, in update_toilets
> datas = json.load(urllib2.urlopen('http://lights.theodo.fr'))
> File "/usr/lib/python2.7/json/__init__.py", line 278, in load
> **kw)
> File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
> return _default_decoder.decode(s)
> File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
> obj, end = self.raw_decode(s, idx=_w(s, 0).end())
> File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
> raise ValueError("No JSON object could be decoded")
> ValueError: No JSON object could be decoded