Commits

Thomas Waldmann committed ef3b90a

indexing: fix extraction of item_name from meta[NAME] when it is a list

Comments (0)

Files changed (1)

MoinMoin/storage/middleware/indexing.py

             return self.data.tell(*args, **kw)
 
     if not item_name:
-        # only used for logging, below
-        item_name = unicode(meta[NAME])
+        names = meta.get(NAME)
+        if names:
+            item_name = names[0]
+        else:
+            item_name = u'anonymous'
 
     rev = PseudoRev(meta, data)
     try: