ftplib error- Large file
half.italian at gmail.com
half.italian at gmail.com
Thu Jun 7 14:36:04 EDT 2007
On Jun 7, 8:54 am, Facundo Batista <facu... at taniquetil.com.ar> wrote:
> half.ital... at gmail.com 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
More information about the Python-list
mailing list