Re: Extracting the traceback

2007-08-22 Thread billiejoex
On 22 Ago, 03:11, "Evan Klitzke" <[EMAIL PROTECTED]> wrote: > On 8/21/07, codesite-noreply <[EMAIL PROTECTED]> wrote: > > > > > > > On 22 Ago, 02:09, "Evan Klitzke" <[EMAIL PROTECTED]> wrote: > > > On 8/21/07, billiejoex <[EMAIL PROTECTED]> wrote: > > > > > Hi there, > > > > I'm facing a case where

Re: Extracting the traceback

2007-08-21 Thread Evan Klitzke
On 8/21/07, codesite-noreply <[EMAIL PROTECTED]> wrote: > On 22 Ago, 02:09, "Evan Klitzke" <[EMAIL PROTECTED]> wrote: > > On 8/21/07, billiejoex <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi there, > > > I'm facing a case where I need to get the traceback outptut when > > > occurring an exception

Re: Extracting the traceback

2007-08-21 Thread codesite-noreply
On 22 Ago, 02:09, "Evan Klitzke" <[EMAIL PROTECTED]> wrote: > On 8/21/07, billiejoex <[EMAIL PROTECTED]> wrote: > > > > > Hi there, > > I'm facing a case where I need to get the traceback outptut when > > occurring an exception. > > I solved such problem by using traceback module in conjunction wit

Re: Extracting the traceback

2007-08-21 Thread Evan Klitzke
On 8/21/07, billiejoex <[EMAIL PROTECTED]> wrote: > Hi there, > I'm facing a case where I need to get the traceback outptut when > occurring an exception. > I solved such problem by using traceback module in conjunction with > StringIO: > > import StringIO, traceback > try: > raise Exception >

Extracting the traceback

2007-08-21 Thread billiejoex
Hi there, I'm facing a case where I need to get the traceback outptut when occurring an exception. I solved such problem by using traceback module in conjunction with StringIO: import StringIO, traceback try: raise Exception except: f = StringIO.StringIO() traceback.print_exc(file=f)