[PATCH] Fix ftp error

Wouter Bolsterlee uws at xs4all.nl
Wed Jan 4 19:49:19 GMT 2006


Hi,

There's a trivial error in the FTP error handling code. Patch attached.

  mvrgr, Wouter

-- 
:wq                                                       mail uws at xs4all.nl
                                                      web http://uwstopia.nl

i see the rifles coming over the hill         -- black rebel motorcycle club
-------------- next part --------------
=== 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: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060104/9371d9e0/attachment.pgp 


More information about the bazaar mailing list