> 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,
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.__
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)