Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Fixed getLexicon so that it can properly raise an error when it canno…
Browse files Browse the repository at this point in the history
…t find the proper lexicon object.
  • Loading branch information
caseman committed Dec 10, 2002
1 parent 76e58a2 commit d666635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ZCTextIndex.py
Expand Up @@ -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

Expand Down

0 comments on commit d666635

Please sign in to comment.