From 2aa7ea15c5d5ff804c64098bb2cab6a6a3043e51 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sun, 8 Jan 2023 17:58:32 +0100 Subject: [PATCH] Correct an issue with unit tests --- glances/processes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glances/processes.py b/glances/processes.py index 9504f137..7c856bbe 100644 --- a/glances/processes.py +++ b/glances/processes.py @@ -333,7 +333,8 @@ class GlancesProcesses(object): def is_selected_extended_process(self, position): """Return True if the process is the selected one for extended stats.""" - return not self.args.programs and \ + return hasattr(self.args, 'programs') and \ + not self.args.programs and \ hasattr(self.args, 'enable_process_extended') and \ self.args.enable_process_extended and \ not self.disable_extended_tag and \