[Python-bugs-list] [ python-Bugs-527855 ] ftplib error (exception) handling bug
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 10 Mar 2002 08:00:23 -0800
Bugs item #527855, was opened at 2002-03-09 19:34
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=527855&group_id=5470
Category: Extension Modules
Group: Python 2.1.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Chris Gonnerman (solomoriah)
Assigned to: Nobody/Anonymous (nobody)
Summary: ftplib error (exception) handling bug
Initial Comment:
On line 445 of ftplib.py we find:
if msg[:3] != '500':
msg isn't a string, it's an error_perm instance.
Change the line to this:
if str(msg)[:3] != '500':
(with correct indentation obviously) and the problem
is solved.
I don't know if this is in 2.2 or not as I haven't
installed it yet.
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2002-03-10 17:00
Message:
Logged In: YES
user_id=21627
Thanks for the report; fixed in ftplib.py 1.66.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=527855&group_id=5470