1. jasuca
  2. whoosh

Commits

jasuca  committed 1edadcc

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

  • Participants
  • Parent commits 6565466
  • Branches default

Comments (0)

Files changed (1)

File src/whoosh/matching.py

View file
             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