[Libvirt-cim] [PATCH] [TEST] add a try..except to get_value_xpath()

Dan Smith danms at us.ibm.com
Wed Apr 9 14:50:41 UTC 2008


>> +            raise Exception('Zero or multiple node found')
>> 
DK> And can we use logger.error instead, I guess using raise statement
DK> does not proceed with the execution of the next stmt after it,
DK> right ??  In that case the return None wont be of much use. 

This is correct, the "return None" statement never gets executed.

-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20080409/9ae06f4f/attachment.sig>


More information about the Libvirt-cim mailing list