diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/x509.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py index d64d61f0..4ba6956e 100644 --- a/src/cryptography/x509.py +++ b/src/cryptography/x509.py @@ -175,7 +175,7 @@ class BasicConstraints(object): if not isinstance(ca, bool): raise TypeError("ca must be a boolean value") - if path_length is not None and ca is False: + if path_length is not None and not ca: raise ValueError("path_length must be None when ca is False") if path_length is not None and (not isinstance(path_length, int) |