File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/DIRAC/Resources/Computing/BatchSystems Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -286,10 +286,12 @@ def getJobStatus(self, **kwargs):
286
286
output , error = sp .communicate ()
287
287
status = sp .returncode
288
288
289
- if status != 0 or not output :
289
+ if status != 0 :
290
290
resultDict ["Status" ] = status
291
291
resultDict ["Message" ] = error
292
292
return resultDict
293
+ if not output :
294
+ output = "[]"
293
295
294
296
jobsMetadata = json .loads (output )
295
297
@@ -304,10 +306,12 @@ def getJobStatus(self, **kwargs):
304
306
output , _ = sp .communicate ()
305
307
status = sp .returncode
306
308
307
- if status != 0 or not output :
309
+ if status != 0 :
308
310
resultDict ["Status" ] = status
309
311
resultDict ["Message" ] = error
310
312
return resultDict
313
+ if not output :
314
+ output = "[]"
311
315
312
316
jobsMetadata += json .loads (output )
313
317
You can’t perform that action at this time.
0 commit comments