mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
log exceptions when removing temporary files when upload fails.
This commit is contained in:
@@ -63,7 +63,7 @@ class UploadToolAction( object ):
|
||||
# Attempt to remove temporary file
|
||||
os.unlink( temp_name )
|
||||
except:
|
||||
pass
|
||||
log.exception( 'failure removing temporary file: %s' % temp_name )
|
||||
errmsg = 'exception in sniff.stream_to_file using file %s: %s' % ( data_file.filename, str( e ) )
|
||||
return self.upload_empty( trans, job, "Error:", errmsg )
|
||||
try:
|
||||
@@ -84,7 +84,7 @@ class UploadToolAction( object ):
|
||||
# Attempt to remove temporary file
|
||||
os.unlink( temp_name )
|
||||
except:
|
||||
pass
|
||||
log.exception( 'failure removing temporary file: %s' % temp_name )
|
||||
errmsg = 'exception in sniff.stream_to_file using url_paste %s: %s' % ( url_paste, str( e ) )
|
||||
return self.upload_empty( trans, job, "Error:", errmsg )
|
||||
try:
|
||||
@@ -107,7 +107,7 @@ class UploadToolAction( object ):
|
||||
# Attempt to remove temporary file
|
||||
os.unlink( temp_name )
|
||||
except:
|
||||
pass
|
||||
log.exception( 'failure removing temporary file: %s' % temp_name )
|
||||
errmsg = 'exception in sniff.stream_to_file using StringIO.StringIO( url_paste ) %s: %s' % ( url_paste, str( e ) )
|
||||
return self.upload_empty( trans, job, "Error:", errmsg )
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user