Commits

didier deshommes committed dc20a25

avoid ValueError on remove

  • Participants
  • Parent commits ef884f3

Comments (0)

Files changed (1)

File pythonsolr/pysolr.py

             tv = list2dict(tv)
             
             fields = tv.keys()
-            fields.remove('uniqueKey')
+            if 'uniqueKey' in fields:
+                fields.remove('uniqueKey')
             self.tv = {}
             for f in fields:
                 res = list2dict(tv[f])