#NEWLINE# def fetch( self , url , post_data = None ) : #NEWLINE# #INDENT# for i in xrange ( 0 , self . _retry_count ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return self . _url_fetcher . fetch ( url , post_data ) #NEWLINE# #UNINDENT# except urllib2 . URLError as e : #NEWLINE# #INDENT# if ( i == ( self . _retry_count - 1 ) ) : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# logging . info ( 'Ignoring URL error %s, %d retries remaining.' , e , ( ( self . _retry_count - i ) - 1 ) )