diff options
-rw-r--r-- | src/cryptography/x509/extensions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py index 74e271ed..938a98e9 100644 --- a/src/cryptography/x509/extensions.py +++ b/src/cryptography/x509/extensions.py @@ -82,7 +82,7 @@ class Extensions(object): def get_extension_for_class(self, extclass): for ext in self: - if type(ext.value) == extclass: + if isinstance(ext.value, extclass): return ext raise ExtensionNotFound("No {0} extension was found".format(extclass), extclass) |