Re: IOError and Try Again to loop the loop.

2010-07-11 Thread The Danny Bos
t;IOError; Retrying..." pass print "Done" On Jul 12, 2:14 pm, Chris Rebert wrote: > On Sun, Jul 11, 2010 at 8:13 PM, The Danny Bos wrote: > > > > > > > Thanks gang, > > I'm gonna paste what I've put together, doesn'

Re: IOError and Try Again to loop the loop.

2010-07-11 Thread The Danny Bos
print "Error Processing record: %s: %s" % (item.reference_id, url) pass except IOError: print "IOError; Retrying..." pass print "Done" On Jul 12, 12:33 pm, MRAB wrote: > The Danny Bos wrote: > >

IOError and Try Again to loop the loop.

2010-07-11 Thread The Danny Bos
Heya, I'm running a py script that simply grabs an image, creates a thumbnail and uploads it to s3. I'm simply logging into ssh and running the script through Terminal. It works fine, but gives me an IOError every now and then. I was wondering if I can catch this error and just get the script to