{"action":"closed","issue":{"url":"https://api.github.com/repos/mosquito/aio-pika/issues/179","repository_url":"https://api.github.com/repos/mosquito/aio-pika","labels_url":"https://api.github.com/repos/mosquito/aio-pika/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/mosquito/aio-pika/issues/179/comments","events_url":"https://api.github.com/repos/mosquito/aio-pika/issues/179/events","html_url":"https://github.com/mosquito/aio-pika/issues/179","id":393894428,"node_id":"MDU6SXNzdWUzOTM4OTQ0Mjg=","number":179,"title":"Duplicate exception on queue declaration error","user":{"login":"decaz","id":31096,"node_id":"MDQ6VXNlcjMxMDk2","avatar_url":"https://avatars1.githubusercontent.com/u/31096?v=4","gravatar_id":"","url":"https://api.github.com/users/decaz","html_url":"https://github.com/decaz","followers_url":"https://api.github.com/users/decaz/followers","following_url":"https://api.github.com/users/decaz/following{/other_user}","gists_url":"https://api.github.com/users/decaz/gists{/gist_id}","starred_url":"https://api.github.com/users/decaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decaz/subscriptions","organizations_url":"https://api.github.com/users/decaz/orgs","repos_url":"https://api.github.com/users/decaz/repos","events_url":"https://api.github.com/users/decaz/events{/privacy}","received_events_url":"https://api.github.com/users/decaz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-24T14:52:50Z","updated_at":"2018-12-25T13:16:26Z","closed_at":"2018-12-25T13:16:26Z","author_association":"CONTRIBUTOR","body":"In case of queue declaration error it's future callback raises another one duplicate. For instance when we declare queue with the same name then we are getting `aio_pika.exceptions.ChannelClosed` with the cause `(405): RESOURCE_LOCKED` from this one:\r\nhttps://github.com/mosquito/aio-pika/blob/1a49286b2c03c7405087f232d4fc1dee1f32a3b3/aio_pika/channel.py#L132\r\nBut our future has the following callback:\r\nhttps://github.com/mosquito/aio-pika/blob/1a49286b2c03c7405087f232d4fc1dee1f32a3b3/aio_pika/queue.py#L96-L104\r\nSo at the first line of the callback (`res = result.result()`) we are getting raised exception again. I think any exception should be suppressed here. @mosquito what do you think?"}}
{"actor":{"display_login":"decaz"}}