aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2016-03-06 22:17:40 -0430
committerPaul Kehrer <paul.l.kehrer@gmail.com>2016-03-07 10:15:32 -0400
commitb352531220a2718ca5dddce09ff0cdda1a4bd227 (patch)
treeb00a50ef9397a5cc6a740852bd481fc0977c906f /src
parentacfb618f1016bdd8333f3a4f41c0cc5955c8a1a4 (diff)
downloadcryptography-b352531220a2718ca5dddce09ff0cdda1a4bd227.tar.gz
cryptography-b352531220a2718ca5dddce09ff0cdda1a4bd227.tar.bz2
cryptography-b352531220a2718ca5dddce09ff0cdda1a4bd227.zip
improved language
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/primitives/ciphers/modes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/primitives/ciphers/modes.py b/src/cryptography/hazmat/primitives/ciphers/modes.py
index ad0bcbcd..802e544a 100644
--- a/src/cryptography/hazmat/primitives/ciphers/modes.py
+++ b/src/cryptography/hazmat/primitives/ciphers/modes.py
@@ -173,7 +173,7 @@ class GCM(object):
raise TypeError("initialization_vector must be bytes")
if tag is not None and not isinstance(tag, bytes):
- raise TypeError("tag must be bytes when provided")
+ raise TypeError("tag must be bytes or None")
self._initialization_vector = initialization_vector
self._tag = tag