Commit da00c76b authored by Chris McDonough's avatar Chris McDonough

Fix for "TypeError: expected integer key" (Collector 2121)

parent f7e47ad9
...@@ -231,7 +231,9 @@ class GlobbingLexicon(Lexicon): ...@@ -231,7 +231,9 @@ class GlobbingLexicon(Lexicon):
digrams.append( (pattern[i] + self.eow) ) digrams.append( (pattern[i] + self.eow) )
if not globbing: if not globbing:
result = self._lexicon.get(pattern, ()) result = self._lexicon.get(pattern, None)
if result is None:
return ()
return (result, ) return (result, )
## now get all of the intsets that contain the result digrams ## now get all of the intsets that contain the result digrams
......
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