Reraise exception after pdb.post_mortem() (#5197)

Otherwise, `continue` etc. would fail
This commit is contained in:
Saugat Pachhai
2021-01-04 15:34:04 +05:45
committed by GitHub
parent 261ddc947b
commit 8010005364
+2
View File
@@ -52,6 +52,8 @@ def debug():
import pdb # noqa: T100
pdb.post_mortem()
raise # prevent from jumping ahead
@contextmanager
def debugtools(args):