exceptions
Zunbeltz Izaola
zunbeltz at wm.lc.ehu.es.XXX
Mon May 31 08:30:58 EDT 2004
Peter Hansen <peter at engcorp.com> writes:
> Zunbeltz Izaola wrote:
> > I've the following problem with try/exception.
> > I've a try block that will raise some exceptions.
> > I want the program to ignore this exceptions completely. Is it
> > possible?
>
> In the following, all exceptions will be ignored:
>
> try:
> # something that raises exceptions
> except:
> pass
>
I've trid this, but the problem is that this finished the try block.
I want to continue executing the try block from the point the
exception was raised.
> This is definitely *not* a recommended way to write software,
> however. You should really understand what you are doing before
> writing code this way.
>
I know. I need this feature for testing. I will desable it later.
Zunbeltz
> -Peter
--
Zunbeltz Izaola Azkona | wmbizazz at lg dot ehu
dotes
Materia Kondentsatuaren Fisika Saila |
Zientzia eta Teknologia Fakultatea | Phone: 34946015326
Euskal Herriko Unibertsitatea |
PK 644 | Fax: 34 944648500
48080 Bilbo (SPAIN) |
More information about the Python-list
mailing list