Commits

jasuca committed 1edadcc

Upated func block_min_length to return _minlength or 1.0 to avoid raise exception

Comments (0)

Files changed (1)

src/whoosh/matching.py

             return 1.0
     
     def block_min_length(self):
-        return self._minlength
+        return getattr(self, "_minlength", 1.0)
     
     def block_max_length(self):
         return self._maxlength