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 :returns: None
""" """
recievedconsumerlist = self.communicator.discoveravailableconsumers() recievedconsumerlist = self.communicator.discoveravailableconsumers()
if recievedconsumerlist is None: if not recievedconsumerlist:
return return
for recconsumer in recievedconsumerlist: for recconsumer in recievedconsumerlist:
contains = False contains = False
for consumer in self.red.consumerlist: for consumer in self.red.consumerlist: