ftplib returns EOFError

Dorian MJ dorianmj at gmail.com
Sat Aug 10 07:43:32 EDT 2013


 print "\t\tUploading file %s..." % newname
try:
self.ftp.storbinary("STOR %s" % newname, open(file))
except EOFError: # yep??
self.ftp.connect(self.ftpServ) # reconnecting
self.ftp.login(ftpUser, ftpPass)
self.ftp.storbinary("STOR %s" % newname, open(file))
print "\t\tFile %s uploaded" % newname
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130810/0ada237c/attachment.html>


More information about the Python-list mailing list