From d2e4a33719c765e528de9c22e00e30de2754d8f5 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Fri, 20 Feb 2015 12:13:31 +0100 Subject: [PATCH] SerializingObject: Have more helpful error message in normalize_uuid --- tasklib/task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasklib/task.py b/tasklib/task.py index 789e4ef..0666b0f 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -243,7 +243,8 @@ class SerializingObject(object): def normalize_uuid(self, value): # Enforce sane UUID if not isinstance(value, six.text_type) or value == '': - raise ValueError("UUID must be a valid non-empty string.") + raise ValueError("UUID must be a valid non-empty string, " + "not: {}".format(value)) return value -- 2.39.5