Rev 3378: Add a mutter() to help ensure the error is being properly trapped in http://bzr.arbash-meinel.com/branches/bzr/1.4-dev/ftp_215522
John Arbash Meinel
john at arbash-meinel.com
Mon Apr 21 20:12:27 BST 2008
At http://bzr.arbash-meinel.com/branches/bzr/1.4-dev/ftp_215522
------------------------------------------------------------
revno: 3378
revision-id: john at arbash-meinel.com-20080421190603-t9ev9pts4tmbg9wf
parent: john at arbash-meinel.com-20080421190100-3ktkhqu1f6adayok
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: ftp_215522
timestamp: Mon 2008-04-21 20:06:03 +0100
message:
Add a mutter() to help ensure the error is being properly trapped
modified:
bzrlib/transport/ftp.py ftp.py-20051116161804-58dc9506548c2a53
-------------- next part --------------
=== modified file 'bzrlib/transport/ftp.py'
--- a/bzrlib/transport/ftp.py 2008-04-21 19:01:00 +0000
+++ b/bzrlib/transport/ftp.py 2008-04-21 19:06:03 +0000
@@ -518,6 +518,9 @@
# directory. Check for that and just return an empty list in that
# case. See bug #215522
if str(e).lower().startswith('450 no files found'):
+ mutter('FTP Server returned "%s" for nlst.'
+ ' Assuming it means empty directory',
+ str(e))
return []
raise
# If FTP.nlst returns paths prefixed by relpath, strip 'em
More information about the bazaar-commits
mailing list