summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2023-01-08 16:08:11 +0100
committernicolargo <nicolas@nicolargo.com>2023-01-08 16:08:11 +0100
commitbf46e85e1ccd3f5ebcec2f9e86051ec4c5c702a2 (patch)
treeb36b2b197f0d99649f610d094c70212784f92b82
parentfc6a647e11bd55446369f85861c9754ca2c40f0b (diff)
Correct an issue on check for extended stats
-rw-r--r--glances/processes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/glances/processes.py b/glances/processes.py
index 6fc52cb3..c50b89fe 100644
--- a/glances/processes.py
+++ b/glances/processes.py
@@ -332,7 +332,8 @@ class GlancesProcesses(object):
def is_selected_process(self, position):
"""Return True if the process is the selected one."""
- return self.args.enable_process_extended and \
+ return hasattr(self.args, 'enable_process_extended') and \
+ self.args.enable_process_extended and \
not self.disable_extended_tag and \
hasattr(self.args, 'cursor_position') and \
position == self.args.cursor_position and \