reproducible opensuse: try decoding the input before giving it to json

Traceback (most recent call last):
  File "./", line 22, in <module>
    ostatus = json.loads(ofile)
  File "/usr/lib/python3.5/json/", line 312, in loads
TypeError: the JSON object must be str, not 'bytes'
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <>
parent 9704f222
......@@ -18,7 +18,7 @@ from rblib.confparse import log
json_url = '''Downloading status file…')
ofile = urlopen(json_url).read()
ofile = urlopen(json_url).read().decode('utf-8')
ostatus = json.loads(ofile)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment