This never returns with None

This commit is contained in:
Pünkösd Marcell 2020-04-22 03:43:20 +02:00
parent 00300f5b2f
commit 62d4bc48e8

View File

@ -46,8 +46,10 @@ class ConsumerLocator:
:returns: None
"""
recievedconsumerlist = self.communicator.discoveravailableconsumers()
if recievedconsumerlist is None:
if not recievedconsumerlist:
return
for recconsumer in recievedconsumerlist:
contains = False
for consumer in self.red.consumerlist: