How to swallow traceback message

Eknath Venkataramani eknath.iyer at gmail.com
Wed Aug 11 11:24:36 EDT 2010


See Exception Handling <http://docs.python.org/library/exceptions.html>

On Wed, Aug 11, 2010 at 11:09 AM, Back9 <backgoodoo at gmail.com> wrote:

> Hi,
>
> I run my py app to display a file's contents, and it is normally very
> long.
> So I use it like below:
>
> python myapp.py input_file | more
> to see them step by step.
>
> But when I try to exit it, normally I use Ctrl+ C key to quit it.
> Problem is every time I do like it, it shows Traceback message and it
> makes my app not professional.
>
> How do I handle it gracefully.
>
> TIA
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Eknath Venkataramani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100811/66e87a16/attachment-0001.html>


More information about the Python-list mailing list