Re: [Tutor] Successfully trapping the [505 file not found] error

2010-05-26 Thread Tim Johnson
* Luke Paireepinart [100526 15:37]: > > Are you sure you aren't doing anything with the ftp object in the > "more code follows"? > You are probably creating another error of the same type while > processing your exception, so the second one doesn't get caught. :) Ain't it nice to have a second

Re: [Tutor] Successfully trapping the [505 file not found] error

2010-05-26 Thread Luke Paireepinart
> > What follows is the exception handling snippet: > ## -- > except ftplib.error_perm, e: >    msg = "Couldn't get %s %s" % (fname,str(sys.exc_info()[1])) >        log.add(msg) >        more-code-follows > ##

[Tutor] Successfully trapping the [505 file not found] error

2010-05-26 Thread Tim Johnson
Using Python 2.6.2 on Slackware 13.0 32-bit. I'm using Python as a command-line application to do an FTP download which processes a file of jpg filenames, downloading each. Not all of the file names can be found. I'm having a problem trapping *all* of the file not found errors. As an example my ap