Skip to content

Commit a497e97

Browse files
committed
Fix a couple of commonservice lints
1 parent 3eeabbc commit a497e97

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/workflows/services/common_service.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ def __command_queue_listener(self):
301301
This function is run by a separate daemon thread, which is started by
302302
the __start_command_queue_listener function.
303303
"""
304+
assert self.__pipe_commands is not None, (
305+
"Listener started without command queue connection"
306+
)
304307
self.log.debug("Queue listener thread started")
305308
counter = itertools.count() # insertion sequence to keep messages in order
306309
while not self.__shutdown:
@@ -336,7 +339,7 @@ def __start_command_queue_listener(self):
336339
thread_function = self.__command_queue_listener
337340

338341
class QueueListenerThread(threading.Thread):
339-
def run(qltself):
342+
def run(self):
340343
thread_function()
341344

342345
assert not hasattr(self, "__queue_listener_thread")

0 commit comments

Comments
 (0)