Re: Exception passing

2007-03-23 Thread Thomas Dybdahl Ahle
Den Fri, 23 Mar 2007 07:38:47 -0700 skrev Alex Martelli: > Thomas Dybdahl Ahle <[EMAIL PROTECTED]> wrote: >> This works quite good, but it is a hell to debug. Instead of getting a >> log message to the line which originally raised the exception. > As you see, the traceback is "maintained" when y

Re: Exception passing

2007-03-23 Thread Alex Martelli
Thomas Dybdahl Ahle <[EMAIL PROTECTED]> wrote: > Hi, I have a function, which looks like the following: > > connecting = False > def func (): > global connecting > connecting = True > try: ># Do lot of network stuff > except Exception, e: > connecting = False >

Re: Exception passing

2007-03-23 Thread kyosohma
On Mar 23, 9:29 am, Thomas Dybdahl Ahle <[EMAIL PROTECTED]> wrote: > Hi, I have a function, which looks like the following: > > connecting = False > def func (): > global connecting > connecting = True > try: ># Do lot of network stuff > except Exception, e: > connec