Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

Commit

Permalink
Always check explicit for None
Browse files Browse the repository at this point in the history
  • Loading branch information
projekt01 committed Apr 12, 2008
1 parent 3697144 commit b0d4f35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/z3c/contents/value.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def matches(self, object):
"""Check if one of the search terms is found in the searchable text
interface.
"""
adapter = zope.component.queryAdapter(object, ISearchableText)
if not adapter:
adapter = ISearchableText(object, None)
if adapter is None:
return False
searchable = adapter.getSearchableText().lower()
for term in [t.lower() for t in self.terms]:
Expand Down

0 comments on commit b0d4f35

Please sign in to comment.