On Thu, Mar 22, 2007 at 02:24:20PM -0700, Trent Mick wrote:

> Try this:
> 
> try:
>     main()
> except:
>     import traceback
>     print "The script crashed:"
>     traceback.print_exc()
>     print "Press RETURN to exit..."
>     sys.stdin.readline()


Beautiful, thanks!  As you and Frank Müller surmised, I didn't
properly understand the try/catch semantics.

-Steve
_______________________________________________
ActivePython mailing list
ActivePython@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

Reply via email to