From: Tomas Babej Date: Fri, 20 Feb 2015 11:13:31 +0000 (+0100) Subject: SerializingObject: Have more helpful error message in normalize_uuid X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/d2e4a33719c765e528de9c22e00e30de2754d8f5?hp=6b76f794ee4fd89d194903eb9a0487243e06437c SerializingObject: Have more helpful error message in normalize_uuid --- 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