[hg] galaxy 1690: log exceptions when removing temporary files w...
details: http://www.bx.psu.edu/hg/galaxy/rev/317d5f454dfd changeset: 1690:317d5f454dfd user: Greg Von Kuster <greg@bx.psu.edu> date: Tue Jan 06 13:29:03 2009 -0500 description: log exceptions when removing temporary files when upload fails. 1 file(s) affected in this change: lib/galaxy/tools/actions/upload.py diffs (30 lines): diff -r cf3c6da6f552 -r 317d5f454dfd lib/galaxy/tools/actions/upload.py --- a/lib/galaxy/tools/actions/upload.py Tue Jan 06 11:35:49 2009 -0500 +++ b/lib/galaxy/tools/actions/upload.py Tue Jan 06 13:29:03 2009 -0500 @@ -63,7 +63,7 @@ # 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 @@ # 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 @@ # 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:
participants (1)
-
Greg Von Kuster