summaryrefslogtreecommitdiffstats
path: root/cyruslib.py
diff options
context:
space:
mode:
Diffstat (limited to 'cyruslib.py')
-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)))