diff --git a/denote/search.py b/denote/search.py index d48cf67..c2cc627 100755 --- a/denote/search.py +++ b/denote/search.py @@ -124,10 +124,7 @@ class Search: hashtable[word][1] = weight + word_weight def _index(self, hashtable, index): - try: - note = Note.objects.get(pk=index) - except: - return + note = models.Note.objects.get(pk=index) self._indexContent(hashtable, index, note.text, 1) self._indexContent(hashtable, index, note.title.encode('utf-8'), 5)