Skip to content

Commit

Permalink
handle case where restarted job has no cmdargs
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-moody authored and georgejhunt committed Nov 22, 2016
1 parent a2c7e0e commit 207651d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion roles/xsce-admin/files/cmdsrv/xsce-cmdsrv
Original file line number Diff line number Diff line change
Expand Up @@ -1780,7 +1780,12 @@ def get_incomplete_jobs():
job_info = {}
parse = cmd_msg.split(' ')
job_info['cmd'] = parse[0]
job_info['cmd_args'] = json.loads(parse[1])

try:
job_info['cmd_args'] = json.loads(parse[1])
except IndexError:
job_info['cmd_args'] = {}

job_info['cmd_rowid'] = cmd_rowid
job_info['job_command'] = job_command
job_info['cmd_step_no'] = cmd_step_no
Expand Down

0 comments on commit 207651d

Please sign in to comment.