From acc498cb909db9720e5b80e35e19dfd0ffa80de6 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 18 Jan 2024 22:08:03 -0800 Subject: [PATCH] diagnostics: Fix a potential iteration of None value in error cases - Prompted by pylint. Signed-off-by: Sunil Mohan Adapa --- plinth/modules/diagnostics/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/modules/diagnostics/__init__.py b/plinth/modules/diagnostics/__init__.py index 410963e65..473fd86fe 100644 --- a/plinth/modules/diagnostics/__init__.py +++ b/plinth/modules/diagnostics/__init__.py @@ -125,7 +125,7 @@ def _run_on_all_enabled_modules(): for current_index, (app_id, app) in enumerate(apps): app_results = { - 'diagnosis': None, + 'diagnosis': [], 'exception': None, 'show_rerun_setup': False, }