Re: [Tutor] capturing errors/exceptions..

2014-08-01 Thread bruce
Clarification. The test py app is being invoked via a system function from a separate app, and not stacktrace gets created. All I have is in the /var/log/messages, an indication that the pyTest app generated an error.. This is noted by the abrtd process, but I have no other data to go on.. Which

Re: [Tutor] capturing errors/exceptions..

2014-08-01 Thread Steven D'Aprano
On Fri, Aug 01, 2014 at 10:14:38AM -0400, bruce wrote: > Hi. > > Really basic question!! > > Got a chunk of some test python, trying to figure out a quick/easy way > to capture all/any errors/exceptions that get thrown.. Why do you want to do that? The answer to your question will depend on wha

[Tutor] capturing errors/exceptions..

2014-08-01 Thread bruce
Hi. Really basic question!! Got a chunk of some test python, trying to figure out a quick/easy way to capture all/any errors/exceptions that get thrown.. For the test process, I need to "ensure" that I capture any/all potential errors.. -Could/Should I wrap the entire func in a try/catch when I