Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception AttributeError: "'NoneType' object has no attribute 'SHUT_RDWR'" #56

Open
GoogleCodeExporter opened this issue Nov 2, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Which version of amqplib are you using?
amqplib==1.0.2

Have you checked to see if there is a newer version in the "Featured
Downloads" section of the front page of this project?
no

Which version of Python?
2.7.8

In my logs I see some occurences of:
Exception AttributeError: "'NoneType' object has no attribute 'SHUT_RDWR'" in 
<bound method TCPTransport.__del__ of 
<amqplib.client_0_8.transport.TCPTransport object at 0x7feff33a2dd0>> ignored

I guess that is because
    def close(self):
        if self.sock is not None:
            self._shutdown_transport()
            # Call shutdown first to make sure that pending messages
            # reach the AMQP broker if the program exits after
            # calling this method.
            self.sock.shutdown(socket.SHUT_RDWR)
in a situation where Python is shutting down and the socket module already is 
empty ... or something like that. 

This is not a big deal for me - I just wanted to let you know and share the 
possible hint of what the root cause is.

Original issue reported on code.google.com by [email protected] on 19 Apr 2015 at 4:41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant