print isn't in pydoc_topics -> ignore

This commit is contained in:
David Halter
2012-12-09 18:09:36 +01:00
parent 3008b96e44
commit b4aca5d490
2 changed files with 12 additions and 2 deletions
+4 -1
View File
@@ -80,4 +80,7 @@ def imitate_pydoc(string):
except TypeError:
return ''
return pydoc_topics.topics[label] if pydoc_topics else ''
try:
return pydoc_topics.topics[label] if pydoc_topics else ''
except KeyError:
return ''