From f1891728c707d61c153bd503d2730e0aa4c40d71 Mon Sep 17 00:00:00 2001 From: "Jamie C. Driver" Date: Wed, 7 Aug 2024 11:49:30 +0100 Subject: [PATCH] scripts: ensure gcov flag optional in versioninfo data Introduced in faba52206765e2c2de254c99f4bb40f684573d4f --- jade_ota.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jade_ota.py b/jade_ota.py index 176cff4d..8df9e540 100755 --- a/jade_ota.py +++ b/jade_ota.py @@ -293,7 +293,7 @@ def _log_progress(written, compressed_size): last_written = written result = jade.ota_update(fwcompressed, fwlength, chunksize, fwhash, - patchlen=patchlen, cb=_log_progress, gcov_dump=info['GCOV']) + patchlen=patchlen, cb=_log_progress, gcov_dump=info.get('GCOV', False)) assert result is True logger.info(f'Total ota time in secs: {time.time() - start_time}')