
15 Sep
2009
15 Sep
'09
5:30 p.m.
Why not do:
try:
for
except CIMError, (err_no, err_desc):
except Exception, details:
If I change the existing code to try:
for except CIMError, (err_no, err_desc):
except Exception, details:
Then, I will be able to execute the for loop only one time and the execution will come out with suitable message from verify_error*().
This would save you some indentation, and allow you to catch any unexpected errors in addition to the errors thrown by the delete call.
Ah, yes - that's a fair point. That's my mistake here. -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com