Commits

Matt Chaput committed 2e77e72

Check if _struct exists before deleting it.
For when the user has old field instances pickled in an index.

  • Participants
  • Parent commits b0022ee

Comments (0)

Files changed (1)

File src/whoosh/fields.py

 
     def __getstate__(self):
         d = self.__dict__.copy()
-        del d["_struct"]
+        if "_struct" in d:
+            del d["_struct"]
         return d
 
     def __setstate__(self, d):