diff options
author | nicolargo <nicolas@nicolargo.com> | 2023-01-08 17:58:32 +0100 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2023-01-08 17:58:32 +0100 |
commit | 2aa7ea15c5d5ff804c64098bb2cab6a6a3043e51 (patch) | |
tree | 69880f746dd45e0175668054a8e73bd2eb07ff22 | |
parent | b715fc2aba0cbd6d21264f2c87896a3f5086b0d6 (diff) |
Correct an issue with unit testsissue2225
-rw-r--r-- | glances/processes.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 \ |