Skip to content

Commit cb9c29d

Browse files
committed
FIX Unknow sections should not raise an error
1 parent c3e60b8 commit cb9c29d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpydoc/docscrape.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def _parse(self):
327327
if not section.startswith('..'):
328328
section = (s.capitalize() for s in section.split(' '))
329329
section = ' '.join(section)
330-
if self[section]:
330+
if self.get(section):
331331
msg = ("The section %s appears twice in the docstring." %
332332
section)
333333
raise ValueError(msg)

0 commit comments

Comments
 (0)