From faaf101f082c300502476187a71fa62a0e689f19 Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Sat, 22 Nov 2014 17:36:10 -0800 Subject: [PATCH] More complete list of exceptions that can be raised The acme.acme_object_validate() function can also raise ValueError when given something that isn't JSON. --- letsencrypt/client/acme.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/letsencrypt/client/acme.py b/letsencrypt/client/acme.py index 4812aa10d..52cbceb71 100644 --- a/letsencrypt/client/acme.py +++ b/letsencrypt/client/acme.py @@ -28,7 +28,8 @@ def acme_object_validate(j): Success will return None; failure to validate will raise a jsonschema.ValidationError exception describing the reason that the - object could not be validated successfully. + object could not be validated successfully, or a ValueError exception + if the object cannot even be parsed as valid JSON. """ j = json.loads(j) if not isinstance(j, dict):