From eb105a7efa29e4469f31b5c2b05163914ca4df4d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 25 Nov 2021 10:37:15 +0800 Subject: [PATCH] bugfix --- appPublic/zmq_topic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appPublic/zmq_topic.py b/appPublic/zmq_topic.py index 4b2955e..e509acd 100644 --- a/appPublic/zmq_topic.py +++ b/appPublic/zmq_topic.py @@ -95,7 +95,7 @@ class TopicSubscriber: self.sub = self.context.socket(zmq.SUB) self.sub.connect(self.url) # subscribe to topic 'en' or 'jp' - if isinstance(self.topic, []): + if isinstance(self.topic, list): for t in self.topic: self.sub.setsockopt(zmq.SUBSCRIBE, t.encode('utf-8')) else: