Followup to exception refactoring, fixes a few issues @nsoranzo noticed with my semiautomatic refactorings.

This commit is contained in:
Dannon Baker
2017-04-24 11:31:36 -04:00
parent 439579298a
commit 9c44ae01cd
4 changed files with 4 additions and 4 deletions
@@ -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()
+1 -1
View File
@@ -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 ):