exceptions
Brian Gough
bjg at network-theory.co.uk
Mon May 31 08:21:13 EDT 2004
Zunbeltz Izaola <zunbeltz at wm.lc.ehu.es.XXX> writes:
> 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?
You can use an empty "except:" to catch all exceptions and ignore them,
try:
# your code
except:
pass
See the Python tutorial or language reference manual for details.
--
Brian Gough
Network Theory Ltd,
Publishing the Python Manuals --- http://www.network-theory.co.uk/
More information about the Python-list
mailing list