1
0
mirror of https://github.com/HorlogeSkynet/archey4 synced 2025-07-15 04:00:11 +02:00

[CPU|GPU] Silences system_profiler STDERR output

> closes #104
This commit is contained in:
Samuel FORESTIER
2021-11-11 18:23:14 +01:00
parent 95053a3536
commit 478be2f423
2 changed files with 2 additions and 2 deletions
archey/entries

@ -120,7 +120,7 @@ class CPU(Entry):
try:
profiler_output = check_output(
['system_profiler', '-json', 'SPHardwareDataType'],
universal_newlines=True
stderr=DEVNULL, universal_newlines=True
)
except (FileNotFoundError, CalledProcessError):
# `-json` is not available before Catalina.

@ -54,7 +54,7 @@ class GPU(Entry):
try:
profiler_output = check_output(
['system_profiler', 'SPDisplaysDataType'],
universal_newlines=True
stderr=DEVNULL, universal_newlines=True
)
except FileNotFoundError:
return []