aboutsummaryrefslogtreecommitdiff
path: root/asn1crypto/x509.py
diff options
context:
space:
mode:
authorwbond <will@wbond.net>2015-12-07 10:58:49 -0500
committerwbond <will@wbond.net>2015-12-07 10:58:49 -0500
commitff8b0346b9d5c292aaffeccdd7ca926817b66c16 (patch)
treeb881c3cb98ebb5e4acb2f3bb8dc830bbb0a8dce7 /asn1crypto/x509.py
parent526dd5420c63de6ba9d4a0ad5063cd3559c10b8f (diff)
downloadasn1crypto-ff8b0346b9d5c292aaffeccdd7ca926817b66c16.tar.gz
Fix a bug in x509.NameType.human_friendly that would raise an exception on an unknown OID
Diffstat (limited to 'asn1crypto/x509.py')
-rw-r--r--asn1crypto/x509.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1crypto/x509.py b/asn1crypto/x509.py
index 2ae5180..4ae6460 100644
--- a/asn1crypto/x509.py
+++ b/asn1crypto/x509.py
@@ -528,7 +528,7 @@ class NameType(ObjectIdentifier):
'domain_component': 'Domain Component',
'name_distinguisher': 'Name Distinguisher',
'organization_identifier': 'Organization Identifier',
- }[self.native]
+ }.get(self.native, self.native)
class NameTypeAndValue(Sequence):