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

Traceback (most recent call last):
  File "./reproducible_opensuse_import_json.py", line 22, in <module>
    ostatus = json.loads(ofile)
  File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
    s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 9704f222
......@@ -18,7 +18,7 @@ from rblib.confparse import log
json_url = 'http://rb.zq1.de/compare.factory/reproducible.json'
log.info('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