print isn't in pydoc_topics -> ignore
This commit is contained in:
1 parent
3008b96e44
commit
b4aca5d490
2 files changed
+12
-2
No files matched your search
+4
-1
@@ -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 ''
|
||||
Reference in new issue
Block a user