Skip to content

bpo-35931: Gracefully handle any exception in pdb debug command#12103

Merged
miss-islington merged 2 commits into
python:masterfrom
blueyed:pdb-any-exc
Mar 12, 2019
Merged

bpo-35931: Gracefully handle any exception in pdb debug command#12103
miss-islington merged 2 commits into
python:masterfrom
blueyed:pdb-any-exc

Conversation

@blueyed

@blueyed blueyed commented Feb 28, 2019

Copy link
Copy Markdown
Contributor

This is relevant for debug doesnotexist(), which would crash with a
NameError otherwise.

This is relevant for `debug doesnotexist()`, which would crash with a
NameError otherwise.
blueyed added a commit to pdbpp/pdbpp that referenced this pull request Mar 9, 2019
blueyed added a commit to pdbpp/pdbpp that referenced this pull request Mar 9, 2019
blueyed added a commit to pdbpp/pdbpp that referenced this pull request Mar 9, 2019
blueyed added a commit to pdbpp/pdbpp that referenced this pull request Mar 9, 2019
* do_debug: harden and fix for py38-dev (v3.8.0a2)

Based on python/cpython#12103.

* ci: Travis: do not allow failure with py38
@zware

zware commented Mar 10, 2019

Copy link
Copy Markdown
Member

Yep, this is a rather better fix :). For NEWS, let's just write it as a new one:

The :mod:`pdb` ``debug`` command now gracefully handles all exceptions.

This does bring up the question, what behavior is desired from BaseException subclasses (KeyboardInterrupt in particular)?

@miss-islington

Copy link
Copy Markdown
Contributor

@blueyed: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 3e93643 into python:master Mar 12, 2019
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @blueyed for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 12, 2019
…onGH-12103)

This is relevant for `debug doesnotexist()`, which would crash with a
NameError otherwise.
(cherry picked from commit 3e93643)

Co-authored-by: Daniel Hahler <github@thequod.de>
@bedevere-bot

Copy link
Copy Markdown

GH-12285 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request Mar 12, 2019
…GH-12103) (GH-12285)

This is relevant for `debug doesnotexist()`, which would crash with a
NameError otherwise.
(cherry picked from commit 3e93643)


Co-authored-by: Daniel Hahler <github@thequod.de>


https://bugs.python.org/issue35931
blueyed added a commit to blueyed/rebased-pdbpp that referenced this pull request May 25, 2019
* do_debug: harden and fix for py38-dev (v3.8.0a2)

Based on python/cpython#12103.

* ci: Travis: do not allow failure with py38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants