Merge pull request #51622 from brejoc/2018.3-empty-job-workaround

Prevents crash when there is no job entry
This commit is contained in:
Gareth J. Greenaway 2019-02-13 09:32:46 -08:00 committed by GitHub
commit 00a6246050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,6 +77,9 @@ def _walk_through(job_dir):
except Exception:
log.exception('Failed to deserialize %s', load_path)
continue
if not job:
log.error('Deserialization of job succeded but there is no data in %s', load_path)
continue
jid = job['jid']
yield jid, job, t_path, final