summaryrefslogtreecommitdiffstats
path: root/core/modules
diff options
context:
space:
mode:
authorSimon Rettberg2024-05-03 14:15:11 +0200
committerSimon Rettberg2024-05-03 14:15:11 +0200
commitac3ed76f722c048c9759a5c5132ca3c0f423dd5d (patch)
treeb55c66af5bd778ab7fc8b0ec0be250dd6d183b7a /core/modules
parent[run-virt] relay SIGQUIT to dnbd3-fuse too (diff)
downloadmltk-ac3ed76f722c048c9759a5c5132ca3c0f423dd5d.tar.gz
mltk-ac3ed76f722c048c9759a5c5132ca3c0f423dd5d.tar.xz
mltk-ac3ed76f722c048c9759a5c5132ca3c0f423dd5d.zip
[hardware-stats] Don't print errors to stdout in file_get_contents()
Diffstat (limited to 'core/modules')
-rw-r--r--core/modules/hardware-stats/data/opt/openslx/hardware-stats/collect_hw_info_json.py4
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