ftplib exceptions

Martin Preishuber Martin.Preishuber at stuco.uni-klu.ac.at
Sat Jan 8 06:13:57 EST 2000


Hi,

I've a question concerning exception handling in the ftplib module.
My program contains some code like:

try:
    ftp.cwd(directory)
    ftp.dir(self.LsCallBack)
except all_errors, detail:
    HandleError(detail)

The strange thing is, that this way messages like

200 PORT command successful
200 Type set to A

are handled by the exception, even this messages are no
errors from my point of view ...

any ideas ? thanks,

Martin

-- 
Martin Preishuber - Student, ECLiPt Core Member, SysAdmin
http://eclipt.uni-klu.ac.at,
mailto:Martin.Preishuber at stuco.uni-klu.ac.at

Wernher von Braun settled for a V-2 when he coulda had a V-8.



More information about the Python-list mailing list