diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-07-10 19:58:52 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-10 19:58:52 +0900 |
commit | 3db1844d9a62b25099b26bbd14f2d7738a71300c (patch) | |
tree | ee99df7e20d76438166ba1673f0aa0a14efb3e26 /sphinx/application.py | |
parent | 8f6ca411ed7c9631b1eaf5e3040dcb7c646904e1 (diff) | |
parent | 66f9ee4afd0dae2a0db139f17b62ec2b184ac0b4 (diff) | |
download | sphinx-git-3db1844d9a62b25099b26bbd14f2d7738a71300c.tar.gz |
Merge pull request #10634 from jbms/fix-events-pdb
Make `-P` (pdb) work better with exceptions triggered from events
Diffstat (limited to 'sphinx/application.py')
-rw-r--r-- | sphinx/application.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/application.py b/sphinx/application.py index 08c4af5ba..c11b48916 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -131,7 +131,8 @@ class Sphinx: buildername: str, confoverrides: Dict = None, status: Optional[IO] = sys.stdout, warning: Optional[IO] = sys.stderr, freshenv: bool = False, warningiserror: bool = False, tags: List[str] = None, - verbosity: int = 0, parallel: int = 0, keep_going: bool = False) -> None: + verbosity: int = 0, parallel: int = 0, keep_going: bool = False, + pdb: bool = False) -> None: self.phase = BuildPhase.INITIALIZATION self.verbosity = verbosity self.extensions: Dict[str, Extension] = {} @@ -173,6 +174,7 @@ class Sphinx: self.warningiserror = False else: self.warningiserror = warningiserror + self.pdb = pdb logging.setup(self, self._status, self._warning) self.events = EventManager(self) |