summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-21 13:48:08 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-21 13:48:08 +0000
commit48e2041fcbfaa8bc2b9fba96f083cd693e9cab80 (patch)
tree3cb2bbc818781c9071802e987f55c9152d924c90
parent3f4c3e162520fff442c76a09657cd3d0606fbfab (diff)
downloadpykolab-48e2041fcbfaa8bc2b9fba96f083cd693e9cab80.tar.gz
If the annotation response contains a tuple, what we are interested in is tuple[0]
-rw-r--r--cyruslib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cyruslib.py b/cyruslib.py
index fe06b24..75b636f 100644
--- a/cyruslib.py
+++ b/cyruslib.py
@@ -647,6 +647,8 @@ class CYRUS:
return {}
ann = {}
for annotation in data:
+ if isinstance(annotation, tuple):
+ annotation = annotation[0]
self.__verbose( '[GETANNOTATION] RAW %r (length %d)' % (annotation,len(annotation)))
annotation = annotation.split('"')
self.__verbose( '[GETANNOTATION] SPLIT %r (length %d)' % (annotation,len(annotation)))