Avoid more possibles crashes when uploading graphs

This commit is contained in:
2Shirt 2021-04-06 17:27:44 -06:00
parent ccbc257cc0
commit a5766a8a1e
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -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')