This was fine yesterday when I got it working.
from ftplib import FTP
ftp = FTP('files.000webhost.com')
ftp.login(user='', passwd='')
ftp.cwd('/public_html')
def homeDrop():
filename = 'iframe.html'
ftp.storbinary('STOR ' + filename, open(filename, 'rb'))
ftp.rename(filename, "home.html")
ftp.quit()
homeDrop()
Hypothesis: it might just be the ftp server being slow thats causing this issue because that is the only dynamic variable. There is no other apparent errors.