On Jun 7, 8:54 am, Facundo Batista <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Why would storbinary throw an exception even when the file transfer > > was successful? Why would the exception not be thrown until after the > > file was sent? Shouldn't ftplib return something like (104, > > "Connection reset by peer") instead of throwing an error? Is my > > reasoning off somewhere? > > There was an error, the connection was reset by peer. The error code is > 104. As it *was* an error, an exception is correct. > > You always can hide it yourself, with try/except... > > Regards, > > -- > . Facundo > . > Blog:http://www.taniquetil.com.ar/plog/ > PyAr:http://www.python.org/ar/
Ok. I guess that makes sense. But what about the other questions...mainly: Why would it throw an exception even though the file was properly transferred? I guess this could be blamed on the FTP server. ~Sean -- http://mail.python.org/mailman/listinfo/python-list