diff --git a/salt/returners/local_cache.py b/salt/returners/local_cache.py index 9eeb044c8d..7fedb7167b 100644 --- a/salt/returners/local_cache.py +++ b/salt/returners/local_cache.py @@ -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