Commit bca3e8d5 authored by Andreas Jung's avatar Andreas Jung

Collector #126/131: merges fixes from 2.5 trunk

parent d2cc28b1
......@@ -237,7 +237,10 @@ class GlobbingLexicon(Lexicon):
## don't do anything, less efficient but there's not much
## sense in stemming a globbing lexicon.
return self.SplitterFunc(astring,None,encoding)
try:
return self.SplitterFunc(astring,None,encoding)
except:
return self.SplitterFunc(astring,None)
def createRegex(self, pat):
......
......@@ -155,7 +155,10 @@ class Lexicon(Persistent, Implicit):
""" wrap the splitter """
if words is None:
words = self.stop_syn
return self.SplitterFunc(astring, words, encoding)
try:
return self.SplitterFunc(astring, words, encoding)
except:
return self.SplitterFunc(astring, words)
def query_hook(self, q):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment