Skip to content

Commit 5ed2ca0

Browse files
committed
ENH: use local variable for channel name
1 parent 7acf245 commit 5ed2ca0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bluesky_queueserver/manager/output_streaming.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,12 @@ def _publishing_thread(self):
232232
break
233233

234234
def _publish(self, payload):
235-
if self._console_output_on and payload["channel"] == "console":
235+
channel = payload["channel"]
236+
if self._console_output_on and channel == "console":
236237
sys.__stdout__.write(payload["msg"])
237238
sys.__stdout__.flush()
238239

239240
if self._zmq_publish_on and self._socket:
240-
channel = payload["channel"]
241241
if channel == "console":
242242
topic = self._zmq_topic_console
243243
elif channel == "info":

0 commit comments

Comments
 (0)