1. Thomas Waldmann
  2. moin-2.0


Thomas Waldmann  committed ee43744

remove None items when building a name list (None = empty name list)

  • Participants
  • Parent commits 4658b5d
  • Branches namespaces

Comments (0)

Files changed (1)

File MoinMoin/apps/frontend/views.py

View file
  • Ignore whitespace
     :rtype: tuple
     :returns: start word, end word, matches dict
-    item_names = [rev.name for rev in flaskg.storage.documents(wikiname=app.cfg.interwikiname)]
+    item_names = [rev.name for rev in flaskg.storage.documents(wikiname=app.cfg.interwikiname)
+                  if rev.name is not None]
     if item_name in item_names:
     # Get matches using wiki way, start and end of word