IceNine Rated XXX
|
Posted: Fri, 08 Apr 2005 17:47:16 Post Subject: |
|
|
Perhaps it's the code in my post :/
This is the post I've been trying to POST:
Can you help me with my snake?
But seriously folks, I'm trying to implement Exception Handling in ftplib. I'd like it to catch on all errors, and there's even an 'all_errors' tuple supposedly available... But I don't know how
http://python.org/doc/2.4.1/lib/module-ftplib.html
Here's my simple code snippet: Code: | try:
ftp = FTP(ftp_host, ftp_user, ftp_pass)
ftp.storbinary('STOR ' + filename, pointer)
ftp.close()
except:
# do something with an error message here...? |
_________________
A letter to a soldier |
|