(Jan-31-2018, 05:27 PM)metulburr Wrote: There should be a error type after your error that you are missing. What kind of traceback are you getting?
Nope. here's the traceback in its entirety:
Quote:Traceback (most recent call last):
File "pwkpr0.py", line 69, in <module>
pull_file()
File "pwkpr0.py", line 37, in pull_file
file_contents = json.load(f)
File "/usr/lib/python3.6/json/__init__.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Can I infer that my 'logic' here is ok at least? file_contents = json.load(f) causes a problem which I can't figure out, but you guys are also having a tiny bit of difficulty with it as well . I guess I'm running into 'pretty good' (aka thought provoking) problems?
I'm pretty much stuck. I feel this _should_ work...