diff options
author | Austin S. Hemmelgarn <ahferroin7@gmail.com> | 2018-11-21 00:58:00 -0500 |
---|---|---|
committer | Ilya Mashchenko <ilyamaschenko@gmail.com> | 2018-11-21 07:58:00 +0200 |
commit | 0f7f3d811dbfed4d991eafc9994cf06b777d0452 (patch) | |
tree | dfa9f9e340dea435c9fbe6c7913fd1bfc65c5c59 | |
parent | b41fdb378587a2511b3c3a52d6dc6ae4ad015009 (diff) |
Fix typo and py2 compatibility issue. (#4697)
PR #4667 accidentally introduced a py2 compatability issue and a typo,
both of which break the sensors module. This fixes both.
-rw-r--r-- | collectors/python.d.plugin/python_modules/third_party/lm_sensors.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/collectors/python.d.plugin/python_modules/third_party/lm_sensors.py b/collectors/python.d.plugin/python_modules/third_party/lm_sensors.py index acf3e6becb..f873eac834 100644 --- a/collectors/python.d.plugin/python_modules/third_party/lm_sensors.py +++ b/collectors/python.d.plugin/python_modules/third_party/lm_sensors.py @@ -35,39 +35,39 @@ class ErrorNoEntry(SensorsError): pass -class ErrorAccessRead(SensorsError, PermissionError): +class ErrorAccessRead(SensorsError, OSError): pass -class ErrorKernel(SensorError, OSError): +class ErrorKernel(SensorsError, OSError): pass -class ErrorDivZero(SensorError, ZeroDivisionError): +class ErrorDivZero(SensorsError, ZeroDivisionError): pass -class ErrorChipName(SensorError): +class ErrorChipName(SensorsError): pass -class ErrorBusName(SensorError): +class ErrorBusName(SensorsError): pass -class ErrorParse(SensorError): +class ErrorParse(SensorsError): pass -class ErrorAccessWrite(SensorError, PermissionError): +class ErrorAccessWrite(SensorsError, OSError): pass -class ErrorIO(SensorError, IOError): +class ErrorIO(SensorsError, IOError): pass -class ErrorRecursion(SensorError): +class ErrorRecursion(SensorsError): pass |