diff --git a/src/python/CRABClient/Commands/resubmit2.py b/src/python/CRABClient/Commands/resubmit2.py index 627bf893a..b9446473d 100644 --- a/src/python/CRABClient/Commands/resubmit2.py +++ b/src/python/CRABClient/Commands/resubmit2.py @@ -115,7 +115,9 @@ def processJobIds(self, jobList): return None # Build a dictionary from the jobList - jobStatusDict = {jobId: jobStatus for jobStatus, jobId in jobList['jobList']} + jobStatusDict = {} + for jobStatus, jobId in jobList['jobList']: + jobStatusDict[jobId] = jobStatus failedJobStatus = 'failed' finishedJobStatus = 'finished'