diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-01 22:44:28 +0200 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-01 22:44:28 +0200 |
| commit | e2ab08d50aab5c2cc4a92cdbee0e1325da470ddf (patch) | |
| tree | 3f089f1964d04b29403ccf1c62e67eeec87985bb /scripts/fans.py | |
| parent | ed98d3ca2bdb2e4989de4fc9fdbea08274734d7b (diff) | |
| download | psutil-e2ab08d50aab5c2cc4a92cdbee0e1325da470ddf.tar.gz | |
fix different tests on openbsd
Diffstat (limited to 'scripts/fans.py')
| -rwxr-xr-x | scripts/fans.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/fans.py b/scripts/fans.py index e302aec5..7a0ccf91 100755 --- a/scripts/fans.py +++ b/scripts/fans.py @@ -23,7 +23,8 @@ def main(): return sys.exit("platform not supported") fans = psutil.sensors_fans() if not fans: - return sys.exit("no fans detected") + print("no fans detected") + return for name, entries in fans.items(): print(name) for entry in entries: |
