mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
Followup to exception refactoring, fixes a few issues @nsoranzo noticed with my semiautomatic refactorings.
This commit is contained in:
@@ -607,7 +607,7 @@ class LibraryDatasetsController( BaseAPIController, UsesVisualizationMixin ):
|
||||
log.exception( "Unable to create archive for download" )
|
||||
raise exceptions.InternalServerError( "Unable to create archive for download." )
|
||||
except Exception:
|
||||
log.exception( "Unexpected error %s in create archive for download", sys.exc_info()[ 0 ] )
|
||||
log.exception( "Unexpected error %s in create archive for download" )
|
||||
raise exceptions.InternalServerError( "Unable to create archive for download." )
|
||||
composite_extensions = trans.app.datatypes_registry.get_composite_extensions()
|
||||
seen = []
|
||||
|
||||
@@ -1863,7 +1863,7 @@ class LibraryCommon( BaseUIController, UsesFormDefinitionsMixin, UsesExtendedMet
|
||||
status = 'error'
|
||||
except:
|
||||
error = True
|
||||
log.exception( "Unexpected error %s in create archive for download", sys.exc_info()[0] )
|
||||
log.exception( "Unexpected error %s in create archive for download" )
|
||||
message = "Unable to create archive for download, please report - %s" % sys.exc_info()[0]
|
||||
status = 'error'
|
||||
if not error:
|
||||
|
||||
@@ -90,7 +90,7 @@ class ToolPanelManager( object ):
|
||||
fh.write( '</toolbox>\n' )
|
||||
fh.close()
|
||||
except Exception:
|
||||
log.exception( "Exception in ToolPanelManager.config_elems_to_xml_file: %s" )
|
||||
log.exception( "Exception in ToolPanelManager.config_elems_to_xml_file" )
|
||||
finally:
|
||||
lock.release()
|
||||
|
||||
|
||||
@@ -345,7 +345,7 @@ class Registry( object ):
|
||||
# The viewable repository numbers and the categorized (filtered) lists of repository tuples
|
||||
# may be slightly skewed, but that is no reason to result in a potential server error. All
|
||||
# will be corrected at next server start.
|
||||
log.exception( "Handled error removing entry from repository registry: %s." )
|
||||
log.exception( "Handled error removing entry from repository registry" )
|
||||
|
||||
@property
|
||||
def sa_session( self ):
|
||||
|
||||
Reference in New Issue
Block a user