Merge pull request #4965 from tk0miya/epub_exception

epub: Do not use bare raise statement
This commit is contained in:
Takeshi KOMIYA 2018-05-19 11:46:38 +09:00 committed by GitHub
commit b22cdccd9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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