Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f261b78

Browse files
committed
deal with NoneType error
1 parent 0301b8b commit f261b78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bipython/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,7 @@ def ipython_get_doc(self, func):
13771377
if len(doc) == 0:
13781378
doc = ['']
13791379
self.docstring = "\n".join(doc)
1380-
except IndexError:
1380+
except (IndexError, TypeError):
13811381
self.docstring = ''
13821382
self._populate_docstring()
13831383

0 commit comments

Comments
 (0)