diff --git a/dev-requirements.txt b/dev-requirements.txt index 9034dd47..b78acaa3 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -7,4 +7,5 @@ autopep8 autoflake codespell memory-profiler -matplotlib \ No newline at end of file +matplotlib +setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability \ No newline at end of file diff --git a/doc-requirements.txt b/doc-requirements.txt index f5288255..f5d4f9f4 100644 --- a/doc-requirements.txt +++ b/doc-requirements.txt @@ -1,3 +1,4 @@ sphinx sphinx_rtd_theme -reuse \ No newline at end of file +reuse +setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability \ No newline at end of file diff --git a/glances/programs.py b/glances/programs.py index da1b4558..95837d74 100644 --- a/glances/programs.py +++ b/glances/programs.py @@ -53,7 +53,7 @@ def processes_to_programs(processes): programs_dict[p[key]]['childrens'].append(p['pid']) # If all the subprocess has the same value, display it programs_dict[p[key]]['username'] = ( - p['username'] if p['username'] == programs_dict[p[key]]['username'] else '_' + p['username'] if ('username' in p) and (p['username'] == programs_dict[p[key]]['username']) else '_' ) programs_dict[p[key]]['nice'] = p['nice'] if p['nice'] == programs_dict[p[key]]['nice'] else '_' programs_dict[p[key]]['status'] = p['status'] if p['status'] == programs_dict[p[key]]['status'] else '_'