On Mon, Nov 12, 2012 at 8:25 PM, moonhkt wrote:
> On Nov 10, 2:50 pm, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote:
>>
>> The same way you would skip any other error when you do something wrong:
>> catch the exception.
>
> Thank. Added below.
> try:
>ftp = FTP(options.remote_host_ad
On Nov 10, 2:50 pm, Steven D'Aprano wrote:
> On Fri, 09 Nov 2012 20:51:47 -0800, moonhkt wrote:
> > HI All
>
> > How to skip Trackback warning/error when input ftp address is not
> > correct or reject ?
>
> The same way you would skip any other error when you do something wrong:
> catch the except
On Fri, 09 Nov 2012 20:51:47 -0800, moonhkt wrote:
> HI All
>
> How to skip Trackback warning/error when input ftp address is not
> correct or reject ?
The same way you would skip any other error when you do something wrong:
catch the exception.
--
Steven
--
http://mail.python.org/mailman/l
HI All
How to skip Trackback warning/error when input ftp address is not
correct or reject ?
AIX 5.3
from ftplib import FTP
import ftplib
import sys
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-a","--remote_host_address",
dest="remote_host_address",
help="R