Hi everyone,
When I write to a txt file with this code i get no errors. However after I open a websocket I get a 'type error'
The code I use is:
When I write to a txt file with this code i get no errors. However after I open a websocket I get a 'type error'
The code I use is:
def EdtSlist(self):
try:
file1 = open("Slist.txt", "wt")
test="test"
file1.write(test) #<--type error
file1.close()
except:
print("Unexpected error:", sys.exc_info()[0])
raiseAny help is much appreciated because I'm stuck for a while now.
