diff options
author | Simon Rettberg | 2024-05-03 14:15:11 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-05-03 14:15:11 +0200 |
commit | ac3ed76f722c048c9759a5c5132ca3c0f423dd5d (patch) | |
tree | b55c66af5bd778ab7fc8b0ec0be250dd6d183b7a | |
parent | [run-virt] relay SIGQUIT to dnbd3-fuse too (diff) | |
download | mltk-ac3ed76f722c048c9759a5c5132ca3c0f423dd5d.tar.gz mltk-ac3ed76f722c048c9759a5c5132ca3c0f423dd5d.tar.xz mltk-ac3ed76f722c048c9759a5c5132ca3c0f423dd5d.zip |
[hardware-stats] Don't print errors to stdout in file_get_contents()
-rw-r--r-- | core/modules/hardware-stats/data/opt/openslx/hardware-stats/collect_hw_info_json.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/hardware-stats/data/opt/openslx/hardware-stats/collect_hw_info_json.py b/core/modules/hardware-stats/data/opt/openslx/hardware-stats/collect_hw_info_json.py index f110a792..3f0002b2 100644 --- a/core/modules/hardware-stats/data/opt/openslx/hardware-stats/collect_hw_info_json.py +++ b/core/modules/hardware-stats/data/opt/openslx/hardware-stats/collect_hw_info_json.py @@ -97,9 +97,9 @@ def file_get_contents(path, strip_lf = True): s = s[:-1] return s except FileNotFoundError: - print("File not found: " + path) + eprint("File not found: " + path) except IOError: - print("IO Error reading file " + path) + eprint("IO Error reading file " + path) return "" # Get CD/DVD Information |