ftplib returns EOFError - Python
bytes.com › topic › pythonftp.quit() attempts to send a quit command and wait for the response before closing. Apparently, sometime the connection is already closed (don't know why) and you get the exception. I guess you could do something like this: try: ftp.quit() except EOFError: ftp.close() Ciao-----FB