Issue 27241: Catch exceptions raised in pstats add (repl) (original) (raw)

Issue27241

Created on 2016-06-06 17:46 by llllllllll, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
catch-pstats-add.patch llllllllll,2016-06-06 17:46 review
Messages (4)
msg267542 - (view) Author: Joe Jevnik (llllllllll) * Date: 2016-06-06 17:46
I was trying to add a file and accidently mistyped the name which crashed the repl session. I think it would be nicer to report the failure but bring me back to the prompt so I can decide what I would like to do. This patch catches any IOErrors that can be raised when adding a file in the repl, reports it to the user, and then returns them to the repl.
msg271840 - (view) Author: Joe Jevnik (llllllllll) * Date: 2016-08-02 18:54
bump
msg271848 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-08-02 20:31
New changeset d9e25fe35f46 by Stefan Krah in branch '3.5': Issue #27241: Catch exception when running pstats as main. https://hg.python.org/cpython/rev/d9e25fe35f46
msg271849 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2016-08-02 20:34
Yes, I agree this is nicer. Thanks for the patch.
History
Date User Action Args
2022-04-11 14:58:32 admin set github: 71428
2016-08-02 20:35:42 skrah set status: open -> closedassignee: skrahstage: patch review -> resolvedresolution: fixedversions: + Python 3.5
2016-08-02 20:34:08 skrah set nosy: + skrahmessages: +
2016-08-02 20:31:33 python-dev set nosy: + python-devmessages: +
2016-08-02 18:54:55 llllllllll set messages: +
2016-06-06 17:49:11 SilentGhost set nosy: + georg.brandlstage: patch review
2016-06-06 17:46:57 llllllllll create