mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Do not use bare raise statement
This commit is contained in:
parent
981e044bd5
commit
3a9dacd052
@ -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