Fix traceback encountered if you try to access the admin job management interface from a server with job running disabled.

This commit is contained in:
Nate Coraor
2010-10-21 12:29:58 -04:00
parent e9f9451c50
commit 3b77d2eaef
+2
View File
@@ -1491,6 +1491,8 @@ class Admin( object ):
deleted = []
msg = None
status = None
if not trans.app.config.get_bool( "enable_job_running", True ):
return trans.show_error_message( 'This Galaxy instance is not configured to run jobs. If using multiple servers, please directly access the job running instance to manage jobs.' )
job_ids = util.listify( stop )
if job_ids and stop_msg in [ None, '' ]:
msg = 'Please enter an error message to display to the user describing why the job was terminated'