Merge "Don't report async pendings on exception"

This commit is contained in:
Jenkins 2014-01-07 09:31:29 +00:00 committed by Gerrit Code Review
commit 71d52d300c

View File

@ -63,12 +63,10 @@ def main():
sys.exit(1)
try:
asyncs = get_async_count(device_dir, logger)
dump_recon_cache({'async_pending': asyncs}, cache_file, logger)
except Exception:
logger.exception(
_('Exception during recon-cron while accessing devices'))
dump_recon_cache({'async_pending': asyncs}, cache_file, logger)
try:
os.rmdir(lock_dir)
except Exception: