mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #7290 from blueyed/handle_exception-ignore-BdbQuit
Ignore bdb.BdbQuit when handling exceptions
This commit is contained in:
commit
8890357c9b
@ -29,6 +29,11 @@ from sphinx.util.docutils import docutils_namespace, patch_docutils
|
||||
|
||||
|
||||
def handle_exception(app: Sphinx, args: Any, exception: BaseException, stderr: IO = sys.stderr) -> None: # NOQA
|
||||
import bdb
|
||||
|
||||
if isinstance(exception, bdb.BdbQuit):
|
||||
return
|
||||
|
||||
if args.pdb:
|
||||
import pdb
|
||||
print(red(__('Exception occurred while building, starting debugger:')),
|
||||
|
Loading…
Reference in New Issue
Block a user