diff options
Diffstat (limited to 'python.d/cpufreq.chart.py')
-rw-r--r-- | python.d/cpufreq.chart.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python.d/cpufreq.chart.py b/python.d/cpufreq.chart.py index 8677de544b..5246e3424e 100644 --- a/python.d/cpufreq.chart.py +++ b/python.d/cpufreq.chart.py @@ -41,6 +41,11 @@ class Service(SimpleService): return data def check(self): + try: + self.sys_dir = str(self.configuration['sys_dir']) + except (KeyError, TypeError): + self.error("No path specified. Using: '" + self.sys_dir + "'") + self._orig_name = self.chart_name for dirpath, _, filenames in os.walk(self.sys_dir): |