mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #4965 from tk0miya/epub_exception
epub: Do not use bare raise statement
This commit is contained in:
commit
b22cdccd9a
@ -185,7 +185,7 @@ class Epub3Builder(_epub_base.EpubBuilder):
|
||||
navstack[-1].children.append(navpoint)
|
||||
navstack.append(navpoint)
|
||||
else:
|
||||
raise
|
||||
raise RuntimeError('Should never reach here. It might be a bug.')
|
||||
|
||||
return navstack[0].children
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user