aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py
index 7f3ace48..e280980b 100644
--- a/src/cryptography/x509.py
+++ b/src/cryptography/x509.py
@@ -53,7 +53,9 @@ class InvalidVersion(Exception):
class NameAttribute(object):
def __init__(self, oid, value):
if not isinstance(oid, ObjectIdentifier):
- raise TypeError("oid argument must be an ObjectIdentifier object")
+ raise TypeError(
+ "oid argument must be an ObjectIdentifier instance."
+ )
self._oid = oid
self._value = value