From 598dc8020d517efc3b9acf5dcf4cb48af27f078a Mon Sep 17 00:00:00 2001 From: 2Shirt <1923621+2Shirt@users.noreply.github.com> Date: Mon, 15 Oct 2018 12:26:18 -0600 Subject: [PATCH] Fix crash when aborting all tests * Fixes issue #26 --- .bin/Scripts/functions/hw_diags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bin/Scripts/functions/hw_diags.py b/.bin/Scripts/functions/hw_diags.py index 2a486d36..39789149 100644 --- a/.bin/Scripts/functions/hw_diags.py +++ b/.bin/Scripts/functions/hw_diags.py @@ -603,7 +603,7 @@ def post_drive_results(ticket_number): report.append('') # SMART Short test result - if TESTS['NVMe/SMART']['Short Test'][name]: + if TESTS['NVMe/SMART']['Short Test'].get(name, False): report.append('SMART short test result: {}'.format( TESTS['NVMe/SMART']['Short Test'][name])) report.append('')