Syntax change

This commit is contained in:
Calle Pettersson 2017-07-24 20:45:34 +02:00 committed by GitHub
parent 8b6ab3b549
commit 8d778abf30

View File

@ -155,7 +155,7 @@ def get_certs(context=_DEFAULT_CONTEXT, store=_DEFAULT_STORE):
if key not in blacklist_keys:
cert_info[key.lower()] = item[key]
cert_info['dnsnames'] = [name['Unicode'] for name in item['DnsNameList'] or []]
cert_info['dnsnames'] = [name.get('Unicode') for name in item.get('DnsNameList', {})]
ret[item['Thumbprint']] = cert_info
return ret