Hi Richard,<br><br>Thanks for your prompt reply.<br><br>I looked up the link. It refers to changing "<tt>Language bindings could be modified to detect this function"... <br><br></tt><span style="font-family: times new roman,serif;">
<span style="font-family: arial,sans-serif;">What does that mean? Because catching the exception is concerned, that is I am already doing!<br><br>Cheers<br>Omer<br></span></span><tt><br></tt><br><div><span class="gmail_quote">
On 6/27/07, <b class="gmail_sendername">Richard W.M. Jones</b> <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Omer Khalid wrote:<br>> I tried with the traceback. Here is the output:<br>><br>> [('<stdin>', 3, '?', None),<br>> ('/usr/lib/python2.3/site-packages/libvirt.py', 268, 'lookupByID', "if
<br>> ret is None:raise libvirtError('virDomainLookupByID() failed')")]<br>> [('<stdin>', 3, '?', None),<br>> ('/usr/lib/python2.3/site-packages/libvirt.py', 268, 'lookupByID', "if
<br>> ret is None:raise libvirtError('virDomainLookupByID() failed')")]<br><br>So we changed the Python bindings to raise an exception instead of just<br>return None as an indication of error.<br><br>Omer, please see also:
<br><br><a href="https://www.redhat.com/archives/libvir-list/2007-June/msg00383.html">https://www.redhat.com/archives/libvir-list/2007-June/msg00383.html</a><br><br>Rich.<br><br>--<br>Emerging Technologies, Red Hat - <a href="http://et.redhat.com/~rjones/">
http://et.redhat.com/~rjones/</a><br>Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod<br>Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in<br>England and Wales under Company Registration No. 03798903
<br><br></blockquote></div><br><br clear="all"><br>-- <br>----------------------------------------------------------   <br>CERN – European Organization for Nuclear<br>Research, IT Department,  CH-1211<br>Geneva 23, Switzerland
<br><br>Phone: +41 (0) 22 767 2224<br>Fax:     +41 (0) 22 766 8683<br>E-mail : <a href="mailto:Omer.Khalid@cern.ch">Omer.Khalid@cern.ch</a><br>Homepage: <a href="http://cern.ch/Omer.Khalid">http://cern.ch/Omer.Khalid</a>