James Valleroy d512e4268c
diagnostics: Handle TypeError when copying results
Display and log an error, including contents of current_results.

Clear the contents of current_results.

Tests:

- View the diagnostics results as normal.

- Introduce a TypeError before the results are copied. See the error message
  shown in the interface. (The error details are cleared when the page is
  refreshed.)

Helps: #2410

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: Fix a mypy error]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2024-03-05 10:44:21 -08:00
..
2024-02-28 11:02:08 +01:00
2024-02-26 20:59:13 -05:00
2023-08-23 21:47:39 -04:00
2023-10-30 22:09:00 -07:00
2023-08-23 21:47:39 -04:00
2023-09-25 20:03:24 -04:00
2023-09-25 20:03:24 -04:00