Skip to content

diagnostics: Handle TypeError when copying results

I wasn't able to figure out how this TypeError occurred. But this change will allow the user to provide more detail if it happens again.

  • Add tests for get_results
  • 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 (closed)

Signed-off-by: James Valleroy jvalleroy@mailbox.org

Merge request reports

Loading