Avoid crash if benchmark image fails to generate

This commit is contained in:
2Shirt 2021-04-01 23:22:04 -06:00
parent f0e15ceb81
commit 641695a2be
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -611,7 +611,7 @@ def check_io_benchmark_results(test_obj, rate_list, graph_width, state):
image_path, state.ost.ticket_id, test_obj.dev.path.name) 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'Imgur: {imgur_url}')
test_obj.upload_report.append(f'Nextcloud: {nextcloud_url}') test_obj.upload_report.append(f'Nextcloud: {nextcloud_url}')
except RuntimeError: except (FileNotFoundError, RuntimeError):
test_obj.upload_report.append('Failed to upload graph') test_obj.upload_report.append('Failed to upload graph')