Commit 608c08b1 authored by Andreas Jung's avatar Andreas Jung

workaround for broken API implementations not providing SearchableText()

parent fb33a42d
...@@ -78,7 +78,9 @@ class APIHelpTopic(HelpTopic.HelpTopic): ...@@ -78,7 +78,9 @@ class APIHelpTopic(HelpTopic.HelpTopic):
"The full text of the Help Topic, for indexing purposes" "The full text of the Help Topic, for indexing purposes"
text="%s %s" % (self.title, self.doc) text="%s %s" % (self.title, self.doc)
for api in self.apis + self.funcs: for api in self.apis + self.funcs:
try: # not all api's provide SearchableText()
text="%s %s" % (text, api.SearchableText()) text="%s %s" % (text, api.SearchableText())
except AttributeError: pass
return text return text
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment