summaryrefslogtreecommitdiff
path: root/wsme/types.py
diff options
context:
space:
mode:
Diffstat (limited to 'wsme/types.py')
-rw-r--r--wsme/types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wsme/types.py b/wsme/types.py
index 9701a61..623996b 100644
--- a/wsme/types.py
+++ b/wsme/types.py
@@ -270,7 +270,7 @@ class UuidType(UserType):
@staticmethod
def validate(value):
try:
- uuid.UUID(value)
+ return six.text_type((uuid.UUID(value)))
except (TypeError, ValueError, AttributeError):
error = 'Value should be UUID format'
raise ValueError(error)