#NEWLINE# def error( self , exc ) : #NEWLINE# #INDENT# if ( self . exc is None ) : #NEWLINE# #INDENT# self . cache . _write_upload ( self . uri , self . capsule , self . logfile , str ( exc ) , self . _paused ) #NEWLINE# self . exc = exc