From 87668c6ad08dc5a71a964777376106f7fa9d7c15 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Tue, 11 Jun 2019 20:52:45 -0600 Subject: [PATCH] Avoid rare crash when uploading results for review * Fixes issue #117 --- .bin/Scripts/functions/hw_diags.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.bin/Scripts/functions/hw_diags.py b/.bin/Scripts/functions/hw_diags.py index db5d01ca..ea19e90f 100644 --- a/.bin/Scripts/functions/hw_diags.py +++ b/.bin/Scripts/functions/hw_diags.py @@ -1141,7 +1141,9 @@ def run_hw_tests(state): show_results(state) # Upload for review - if ENABLED_UPLOAD_DATA and ask('Upload results for review?'): + if (ENABLED_UPLOAD_DATA + and DEBUG_MODE + and ask('Upload results for review?')): try_and_print( message='Saving debug reports...', function=save_debug_reports,