[PATCH] Fix ftp error

John Arbash Meinel john at arbash-meinel.com
Wed Jan 4 20:18:10 GMT 2006


Wouter Bolsterlee wrote:
> Hi,
> 
> There's a trivial error in the FTP error handling code. Patch attached.
> 
>   mvrgr, Wouter
> 

Looks correct to me.

Do we have any ability to create an FTP server, so that we can test the
FTP functionality?

John
=:->

> 
> 
> ------------------------------------------------------------------------
> 
> === modified file 'bzrlib/transport/ftp.py'
> --- bzrlib/transport/ftp.py	
> +++ bzrlib/transport/ftp.py	
> @@ -177,7 +177,8 @@
>              ret.seek(0)
>              return ret
>          except ftplib.error_perm, e:
> -            raise NoSuchFile(self.abspath(relpath), extra=extra)
> +            s = str(e)
> +            raise NoSuchFile(self.abspath(relpath), extra=s)
>  
>      def put(self, relpath, fp):
>          """Copy the file-like or string object into the location.
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060104/cb315e06/attachment.pgp 


More information about the bazaar mailing list