<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<meta content="MSHTML 6.00.2900.3429" name="GENERATOR">
<style title="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body ocsi="x">
<div dir="ltr"><font face="times new roman">Hello,</font></div>
<div dir="ltr"><font face="times new roman"></font> </div>
<div dir="ltr"><font face="times new roman">i have the following piece of pyhton test code:</font></div>
<div dir="ltr"><font face="times new roman"></font> </div>
<div dir="ltr">try:<br>
     dom = conn.createXML(xmldata, 0)<br>
except libvirt.libvirtError, le:<br>
      sys.stderr.write(le.message)<br>
</div>
<div dir="ltr"><font face="times new roman">as a result in case of exception i get 2 outputs in stderr:</font></div>
<div dir="ltr"><font face="times new roman"></font> </div>
<div dir="ltr">libvir: OpenVZ error : operation failed: Already an OPENVZ VM defined with the id '3005'<br>
operation failed: Already an OPENVZ VM defined with the id '3005'</div>
<div dir="ltr"><font face="times new roman"></font> </div>
<div dir="ltr"><font face="times new roman">Actually, i just need only second string, which is generated by sys.stderr.write(le.message).</font></div>
<div dir="ltr"><font face="times new roman"></font> </div>
<div dir="ltr"><font face="times new roman">Can an exception be raised without "uncontrolled" direction to stderr (fisrt string)?</font></div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">This message (including attachments) is private and confidential. If you have received this message in error, please notify us and remove it from your system.<br>
</font>
</body>
</html>