diff --git a/ZCTextIndex.py b/ZCTextIndex.py index 4cc14c4..83e48b5 100644 --- a/ZCTextIndex.py +++ b/ZCTextIndex.py @@ -124,7 +124,7 @@ def getLexicon(self): lexicon = getattr(aq_parent(aq_inner(self)), self.lexicon_id) if not ILexicon.isImplementedBy(lexicon): raise TypeError('Object "%s" is not a ZCTextIndex Lexicon' - % lexicon.getId()) + % repr(lexicon)) self._v_lexicon = lexicon return lexicon