[New-bugs-announce] [issue27241] Catch exceptions raised in pstats add (repl)

Joe Jevnik report at bugs.python.org
Mon Jun 6 13:46:57 EDT 2016


New submission from Joe Jevnik:

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.

----------
components: Demos and Tools
files: catch-pstats-add.patch
keywords: patch
messages: 267542
nosy: llllllllll
priority: normal
severity: normal
status: open
title: Catch exceptions raised in pstats add (repl)
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file43262/catch-pstats-add.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27241>
_______________________________________


More information about the New-bugs-announce mailing list