Bigbruin.com
Home :: Reviews & Articles ::
Forum :: Info :: :: Facebook :: Youtube :: RSS Feed
Search  :: Register :: Log in
View Single Post  Topic: Problems Posting 
Author Message
IceNine
Rated XXX


PostPosted: Fri, 08 Apr 2005 17:47:16    Post Subject: Reply with quote

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? Grin

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 Confused
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
View user's profile Send private message

Contact Us :: On Facebook :: On Youtube :: Newsletter :: RSS Feed :: FAQ :: Links :: Sponsors :: Privacy Policy
Copyright © 2000 - 2023 Bigbruin.com - All rights reserved