pyamqp: connection can be None in _collect. Closes #2960

This commit is contained in:
Ask Solem 2015-12-12 17:52:10 -08:00
parent 325af35bca
commit 91dd48d018
1 changed files with 2 additions and 1 deletions

View File

@ -98,6 +98,7 @@ class Transport(base.Transport):
return connection.drain_events(**kwargs)
def _collect(self, connection):
if connection is not None:
connection.collect()
def establish_connection(self):