mirror of https://github.com/celery/kombu.git
pyamqp: connection can be None in _collect. Closes #2960
This commit is contained in:
parent
325af35bca
commit
91dd48d018
|
@ -98,7 +98,8 @@ class Transport(base.Transport):
|
|||
return connection.drain_events(**kwargs)
|
||||
|
||||
def _collect(self, connection):
|
||||
connection.collect()
|
||||
if connection is not None:
|
||||
connection.collect()
|
||||
|
||||
def establish_connection(self):
|
||||
"""Establish connection to the AMQP broker."""
|
||||
|
|
Loading…
Reference in New Issue