aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-10-20 10:53:58 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-10-20 10:53:58 -0700
commitd5b592d95d3844f902378ac4d97ea8a0e8843600 (patch)
tree54d6b52d5c9519e16e915ae7ee09e752a25a1109
parente148d01e7587f39d3ce15a1592dbd5e2dc4e9bca (diff)
downloadcryptography-d5b592d95d3844f902378ac4d97ea8a0e8843600.tar.gz
cryptography-d5b592d95d3844f902378ac4d97ea8a0e8843600.tar.bz2
cryptography-d5b592d95d3844f902378ac4d97ea8a0e8843600.zip
improved the error message
-rw-r--r--cryptography/fernet.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cryptography/fernet.py b/cryptography/fernet.py
index 9fee3eba..6bc401de 100644
--- a/cryptography/fernet.py
+++ b/cryptography/fernet.py
@@ -132,7 +132,9 @@ class Fernet(object):
class MultiFernet(object):
def __init__(self, fernets):
if not fernets:
- raise ValueError("MultiFernet requires at least one fernet")
+ raise ValueError(
+ "MultiFernet requires at least one Fernet instance"
+ )
self._fernets = fernets
def encrypt(self, msg):