mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Human meaningful exception message for decoding fields with minimum length.
This commit is contained in:
parent
de3b48640b
commit
a55991055e
1 changed files with 2 additions and 1 deletions
|
|
@ -326,7 +326,8 @@ def decode_b64jose(data, size=None, minimum=False):
|
|||
|
||||
if size is not None and ((not minimum and len(decoded) != size)
|
||||
or (minimum and len(decoded) < size)):
|
||||
raise errors.DeserializationError()
|
||||
raise errors.DeserializationError(
|
||||
"Expected at least or exactly {0} bytes".format(size))
|
||||
|
||||
return decoded
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue