TypeError if given None as a text to index
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.index |
Fix Released
|
Undecided
|
Tres Seaver | ||
zope.index (Ubuntu) |
Fix Released
|
Undecided
|
Gediminas Paulauskas |
Bug Description
using repoze.catalog, a text attribute ends up being None, and I get an error while indexing:
Exception happened during processing of request from ('127.0.0.1', 48338)
Traceback (most recent call last):
File "/home/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.handle()
File "/home/
BaseHTTPReq
File "/usr/lib/
self.
File "/home/
self.
File "/home/
self.
File "/home/
return self.app(environ, start_response)
File "/home/
return self.wrap_
File "/home/
result = self.applicatio
File "/home/
result = self.applicatio
File "/home/
response = view_callable(
File "/home/
return view(context, request)
File "/home/
response = view(context, request)
File "/home/
return HTTPFound(
File "/home/
index.
File "/home/
return super(CatalogIndex, self).index_
File "/home/
self.
File "/home/
count = BaseIndex.
File "/home/
wids = self._lexicon.
File "/home/
last = element.
File "/home/
for s in lst:
TypeError: 'NoneType' object is not iterable
Indexing None shouldn't be a problem, and should be equivalent to the empty string.
Changed in zope.index: | |
assignee: | nobody → Tres Seaver (tseaver) |
status: | New → In Progress |
Changed in zope.index: | |
status: | In Progress → Fix Committed |
Changed in zope.index (Ubuntu): | |
status: | Incomplete → Confirmed |
Changed in zope.index (Ubuntu): | |
assignee: | nobody → Gediminas Paulauskas (menesis) |
status: | Confirmed → Fix Committed |
Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. I have classified this bug as a bug in python-zope.index.
When reporting bugs in the future please use apport, either via the appropriate application's "Help -> Report a Problem" menu or using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https:/ /wiki.ubuntu. com/ReportingBu gs.