Python Forum
Python script Server list - if condition error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python script Server list - if condition error
#8
you are checking just the first line, if it is not what you expect, you print No Serv found and exit the loop (because of the break)
To avoid further fruitless iterations, please explain what you actually want...
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: Python script Server list - if condition error - by buran - Jan-27-2020, 07:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  unable to remove all elements from list based on a condition sg_python 3 536 Jan-27-2024, 04:03 PM
Last Post: deanhystad
  Triggering a ps1 script in remote windows server via http python request jasveerjassi 1 441 Jan-26-2024, 07:02 PM
Last Post: deanhystad
  Python Alteryx QS-Passing pandas dataframe column inside SQL query where condition sanky1990 0 803 Dec-04-2023, 09:48 PM
Last Post: sanky1990
Sad "PriceSystem" Python Script error to Shopify API Alphetto 0 475 Jul-04-2023, 10:03 AM
Last Post: Alphetto
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,506 Jun-29-2023, 11:57 AM
Last Post: gologica
Question Need help for a python script to extract information from a list of files lephunghien 6 1,193 Jun-12-2023, 05:40 PM
Last Post: snippsat
  How to modify python script to append data on file using sql server 2019? ahmedbarbary 1 1,276 Aug-03-2022, 06:03 AM
Last Post: Pedroski55
  Server Folder Error : WinError5 Access Denied fioranosnake 1 1,181 Jun-21-2022, 11:11 PM
Last Post: Larz60+
  select Eof extension files based on text list of filenames with if condition RolanRoll 1 1,584 Apr-04-2022, 09:29 PM
Last Post: Larz60+
  No module named '_cffi_backend' error with executable not with python script stephanh 2 5,834 Nov-25-2021, 06:52 AM
Last Post: stephanh

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020