This pull request addresses an issue where, if an app name other than the first one in the app_list was provided, the message Failed to find app in app list. would appear.
The bug was caused by a misplaced break statement that was outside the loop, preventing the function from iterating through the entire list. I have moved the break inside the loop where app_name is compared to the names in the list, allowing the function to properly check all apps in the list.
This pull request addresses an issue where, if an app name other than the first one in the
app_list
was provided, the messageFailed to find app in app list.
would appear.The bug was caused by a misplaced
break
statement that was outside the loop, preventing the function from iterating through the entire list. I have moved thebreak
inside the loop whereapp_name
is compared to the names in the list, allowing the function to properly check all apps in the list.