I changed the code as you suggested. Here is the result... where as before adding your code no error message.
$ python hello2.py
Traceback (most recent call last):
File "hello2.py", line 1283, in <module>
master_race_file = load_racefiles()
File "hello2.py", line 1164, in load_racefiles
if file_name == Race_date and file_ext == ".jcp":
NameError: name 'Race_date' is not defined
I changed the code and put it like this. And it works. But problem is I am still in the load_races function
$ python hello2.py
Traceback (most recent call last):
File "hello2.py", line 1283, in <module>
master_race_file = load_racefiles()
File "hello2.py", line 1164, in load_racefiles
if file_name == Race_date and file_ext == ".jcp":
NameError: name 'Race_date' is not defined
I changed the code and put it like this. And it works. But problem is I am still in the load_races function
master_race_file.append(h ) my_labeldone= Label( text ="Downloading Complete", fg= "black", font = ("sans_serif" , 16)).place(x=500, y=500) print( master_race_file[0]['todays_race_classification'])I wanted to access the info outside the function.