[Libvirt-cim] [PATCH 3 of 3] [TEST] Add new tc to verify the err values for RPCS DeleteResourceInPool()
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Tue Sep 15 15:30:27 UTC 2009
>>
>> 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 at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list