First thank you for reading this.
My problem is that I kinda got behind the error by making an infinit loop
"while True" then I try my commands, Navigating, listing ...
I made an excepting to get me past this error 421 but am not satisfied.
Here is what I did :
except ftplib.error_temp as e:
print('Time run out reconnect: ',e)
RemoteTar.ftp_connect_to_site()
This exception will be printed it still true
so It going to stay stuck in that part of the code
what I did is desprately calling my function from a class this function is what allows me to reconnect
what I want is a better way to stay connected to the ftp server.
Thanks in advance