This commit is contained in:
Kovid Goyal 2011-03-18 11:08:34 -06:00
parent 001242d21e
commit 514d2a4381

View File

@ -623,7 +623,7 @@ class BrowseServer(object):
except:
raise cherrypy.HTTPError(404, 'Search: %r not understood'%which)
else:
if fm[category]['datatype'] == 'composite':
if fm.get(category, {'datatype':None})['datatype'] == 'composite':
cid = cid.decode('utf-8')
all_ids = self.search_cache('')
if category == 'newest':