compat with python <3.6

visu-type
Jean-Louis Huynen 2019-03-18 13:00:39 +01:00
parent e4bb9b21fa
commit 2836414484
No known key found for this signature in database
GPG Key ID: 4CDEBABACE9A5DC9
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class TypeHandler(MetaTypesDefault):
os.makedirs(jsons_save_dir)
# Extract certificates from json
mtjson = json.loads(data)
mtjson = json.loads(data.decode())
for certificate in mtjson["Certificates"] or []:
cert = binascii.a2b_base64(certificate["Raw"])
# one could also load this cert with