[Spambayes] *nix error after upgrade

Skip Montanaro skip at pobox.com
Mon Nov 24 14:37:13 EST 2003


  $ python
  Python 2.3.2 (#1, Nov 24 2003, 00:10:59)
  [GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
  Type "help", "copyright", "credits" or "license" for more information.
  >>> from spambayes.storage import open_storage
  >>> s = open_storage(".hammiedb")
  >>> s
  >>> dir(s)
  ['__class__', '__delattr__', '__doc__', '__getattribute__', '__hash__',
  '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__',
  '__setattr__', '__str__']
  >>> s._wordinfoget("python")
  Traceback (most recent call last):
   File "<stdin>", line 1, in ?
  AttributeError: 'NoneType' object has no attribute '_wordinfoget'
  >>>

Looking at the open_storage code I don't see how it can return None, but it
clearly is.  What version of SpamBayes are you using again?

Skip



More information about the Spambayes mailing list