Hi,<div><br></div><div>I'm using Pika 0.9.5 with python 2.7 successfully, but I'm running into some issues when it comes to handle errors from the RabbitMQ broker.</div><div>I would like to deal programmatically with errors of this kind :</div>
<div><br></div><div><div>=ERROR REPORT==== 7-Feb-2012::14:13:40 ===</div><div>connection <0.25027.3>, channel 1 - error:</div><div>{amqp_error,precondition_failed,</div><div> "cannot redeclare exchange 'status' in vhost '/' with different type, durable, internal or autodelete value",</div>
<div> 'exchange.declare'}</div></div><div><br></div><div>This log is from the rabbitmq log.</div><div><br></div><div>I'm using the Pika SelectConnection, and my app is hanging somewhere after calling channel.exchange_declare and never gets into my callback.</div>
<div><br></div><div><div> def on_channel_open(channel):</div><div> channel.exchange_declare(</div><div> exchange="status",</div><div> callback=on_exchange_declared)</div>
</div><div><br></div><div>What would be the way, in this case (and more generally) to "catch" errors like this one in my code ?</div><div><br></div><div><br></div><div>Raphaël</div>