classification
Title: Catch exceptions raised in pstats add (repl)
Type: enhancement Stage: resolved
Components: Demos and Tools Versions: Python 3.6, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: skrah Nosy List: georg.brandl, llllllllll, python-dev, skrah
Priority: normal Keywords: patch

Created on 2016-06-06 17:46 by llllllllll, last changed 2016-08-02 20:35 by skrah. 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
2016-08-02 20:35:42skrahsetstatus: open -> closed
assignee: skrah
stage: patch review -> resolved
resolution: fixed
versions: + Python 3.5
2016-08-02 20:34:08skrahsetnosy: + skrah
messages: + msg271849
2016-08-02 20:31:33python-devsetnosy: + python-dev
messages: + msg271848
2016-08-02 18:54:55llllllllllsetmessages: + msg271840
2016-06-06 17:49:11SilentGhostsetnosy: + georg.brandl

stage: patch review
2016-06-06 17:46:57llllllllllcreate