From 62d4bc48e8b4beb1db8897ecdf6ea3a2d87c1776 Mon Sep 17 00:00:00 2001 From: marcsello Date: Wed, 22 Apr 2020 03:43:20 +0200 Subject: [PATCH] This never returns with None --- consumerlocator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/consumerlocator.py b/consumerlocator.py index 6226f2d..e93031b 100644 --- a/consumerlocator.py +++ b/consumerlocator.py @@ -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: