Skip to content

Commit ce28d47

Browse files
committed
Hotfix for check on frequency provider
1 parent 7445176 commit ce28d47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

metric_providers/cpu/frequency/sysfs/core/provider.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ def check_system(self):
2121
file.read()
2222
except PermissionError as exc:
2323
raise MetricProviderConfigurationError(f"{self._metric_name} provider could not be started.\nCannot read the path for the CPU frequency in sysfs.\n\nAre you running in a VM / cloud / shared hosting?\nIf so please disable the {self._metric_name} provider in the config.yml") from exc
24-
raise MetricProviderConfigurationError(f"{self._metric_name} provider could not be started.\nCould not find the path for the CPU frequency in sysfs.\n\nAre you running in a VM / cloud / shared hosting? \nIf so please disable the {self._metric_name} provider in the config.yml")
24+
else:
25+
raise MetricProviderConfigurationError(f"{self._metric_name} provider could not be started.\nCould not find the path for the CPU frequency in sysfs.\n\nAre you running in a VM / cloud / shared hosting? \nIf so please disable the {self._metric_name} provider in the config.yml")

0 commit comments

Comments
 (0)