-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
Description
Hello
I have this error since today, whereas the script had been running without problems for months and nothing has changed on my system :
Traceback (most recent call last):
File "./t2m", line 267, in <module>
parser.dispatch()
File "/root/.t2m/.t2m/lib/python3.5/site-packages/argh/helpers.py", line 55, in dispatch
return dispatch(self, *args, **kwargs)
File "/root/.t2m/.t2m/lib/python3.5/site-packages/argh/dispatching.py", line 174, in dispatch
for line in lines:
File "/root/.t2m/.t2m/lib/python3.5/site-packages/argh/dispatching.py", line 277, in _execute_command
for line in result:
File "/root/.t2m/.t2m/lib/python3.5/site-packages/argh/dispatching.py", line 260, in _call
result = function(*positional, **keywords)
File "./t2m", line 178, in one
db = get_db()
File "./t2m", line 34, in get_db
return json.load(open("db.json", "r"))
File "/usr/lib/python3.5/json/__init__.py", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 259 column 3 (char 8213)
Edit :
Apparently, the problem was due to poor data formatting in db.json.
I don't understand how this happened.
I solved the problem by rewriting a new db.json manually.