From a5766a8a1e489a96e3b3fd7f8fad2eb05458f12d Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Tue, 6 Apr 2021 17:27:44 -0600 Subject: [PATCH] Avoid more possibles crashes when uploading graphs --- scripts/wk/hw/diags.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/wk/hw/diags.py b/scripts/wk/hw/diags.py index 68a6c703..5a029305 100644 --- a/scripts/wk/hw/diags.py +++ b/scripts/wk/hw/diags.py @@ -646,7 +646,9 @@ def check_io_benchmark_results(test_obj, rate_list, graph_width, state): image_path, state.ost.ticket_id, test_obj.dev.path.name) test_obj.upload_report.append(f'Imgur: {imgur_url}') test_obj.upload_report.append(f'Nextcloud: {nextcloud_url}') - except (FileNotFoundError, RuntimeError): + except Exception as err: # pylint: disable=broad-except + LOG.error('%s', err) + LOG.error('Failed to upload graph') test_obj.upload_report.append('Failed to upload graph')