Exception - how to ignore it ?
vivek kumar
gupt_vive at hotmail.com
Tue Jun 3 04:58:34 EDT 2003
>From: "Helmut Jarausch" <jarausch at igpm.rwth-aachen.de>
>Reply-To: jarausch at igpm.rwth-aachen.de
>To: python-list at python.org
>Subject: Exception - how to ignore it ?
>Date: Tue, 03 Jun 2003 09:40:42 +0200
>
>Hi,
>
>is it possible for an exception handler
>to just e.g. print something and set some
>global flags but then to have the script
>continue just after the statement which
>raised the exception?
>
>Thanks for a hint,
>
>Helmut Jarausch
If you know exactly where and which statement is raising exception or can
raise exception then :
try:
this statement [raises | can raise] exception...
catch Exception,e:
print "Exception : ",str(e)
errFlag=1
your script execution will continue from here...
Regards
Vivek Kumar
_________________________________________________________________
Reconnect with old pals. Relive the happy times.
http://www.batchmates.com/msn.asp With just one click.
More information about the Python-list
mailing list