Re: Exceptions: Logging TB and local variables?

2007-10-10 Thread allen.fowler
> Two possibilieies: > > You will need to determine ALL the exceptions that the 3rd party party modules > can raise. If they are custom exceptions you will need to import them into > your > application from their modules. > > example: > > say that 3rd party modules raise TransientError, IOError,

Re: Exceptions: Logging TB and local variables?

2007-10-10 Thread Larry Bates
allen.fowler wrote: > Hi, > > My code looks like this: > > for item in bigset: > self.__sub1(item) > self.__sub2(item) > self.__sub3(item) > > # the subX functions, in turn, use various 3rd party modules. > > > Now, I would like to do this: > > for item in bigset: > try: > self.__

Exceptions: Logging TB and local variables?

2007-10-09 Thread allen.fowler
Hi, My code looks like this: for item in bigset: self.__sub1(item) self.__sub2(item) self.__sub3(item) # the subX functions, in turn, use various 3rd party modules. Now, I would like to do this: for item in bigset: try: self.__sub1(item) self.__sub2(item) self.__sub3(item)