From 0c55738998ef4ff3089743a138730e20872c5c9a Mon Sep 17 00:00:00 2001 From: smirgol <14124899+smirgol@users.noreply.github.com> Date: Tue, 27 Jun 2023 16:40:43 +0200 Subject: [PATCH] fix error with breaking outer for loop --- profileexecutor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profileexecutor.py b/profileexecutor.py index 650ce37..a685806 100644 --- a/profileexecutor.py +++ b/profileexecutor.py @@ -212,12 +212,12 @@ class ProfileExecutor(threading.Thread): flag = False for w_command in w_commands: parts = w_command['name'].split(',') - for part in parts: if part.lower() == p_cmdName: - print(part) flag = True break + if flag == True: + break if flag == False: return