How to swallow traceback message

Back9 backgoodoo at
Wed Aug 11 17:09:50 CEST 2010


I run my py app to display a file's contents, and it is normally very
So I use it like below:

python 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.


More information about the Python-list mailing list