I have a list of names within a file.
Each time my program turns to one name from the list, and extracts data.
The problem is that sometimes some of the name(s) are not available (temporarily and randomaly).
A name that was unavailable yesterday, will be available today. but, another name that was available yesterday, will not be available today).
As soon as the program reach unavailable name then the program gets stuck.
What can you do for the program to skip a name(s) that is not available at this moment? so that the program always work and not get stuck.
Hope i am clear... :)
my list:
Name_1
Name_2
Name_3
Name_4
Name_5
my program:
with open('D:\My_Path.txt', 'r') as fp:
Names = [line.rstrip('\n') for line in fp.readlines()]
for Name in (Names):
'''Do something'''