aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-05-12 15:53:38 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-05-12 15:53:38 -0500
commit6e198b0092a2a320887a234db5227a8c1daa49be (patch)
tree366f0d3cc7c9ddc3f52fce02636cd8a03f90793c /src
parent75f4118e61a050e3e9f562a4de00a9dd68e1f5c0 (diff)
downloadcryptography-6e198b0092a2a320887a234db5227a8c1daa49be.tar.gz
cryptography-6e198b0092a2a320887a234db5227a8c1daa49be.tar.bz2
cryptography-6e198b0092a2a320887a234db5227a8c1daa49be.zip
notice_numbers are not optional in NoticeReference
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py
index 173fd084..b0a4a352 100644
--- a/src/cryptography/x509.py
+++ b/src/cryptography/x509.py
@@ -568,11 +568,11 @@ class UserNotice(object):
class NoticeReference(object):
def __init__(self, organization, notice_numbers):
self._organization = organization
- if notice_numbers and not all(
+ if not isinstance(notice_numbers, list) or not all(
isinstance(x, int) for x in notice_numbers
):
raise TypeError(
- "notice_numbers must be a list of integers or None"
+ "notice_numbers must be a list of integers"
)
self._notice_numbers = notice_numbers