Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/secore/datastructures.py
diff options
context:
space:
mode:
Diffstat (limited to 'secore/datastructures.py')
-rw-r--r--secore/datastructures.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/secore/datastructures.py b/secore/datastructures.py
index 6006739..588ac06 100644
--- a/secore/datastructures.py
+++ b/secore/datastructures.py
@@ -192,9 +192,11 @@ class ProcessedDocument(object):
term = tl.skip_to('Q').term
if len(term) == 0 or term[0] != 'Q':
return None
+ self._id = term[1:]
except StopIteration:
+ self._id = None
return None
- self._id = term[1:]
+
return self._id
def _set_id(self, id):
tl = self._doc.termlist()