Don't spew a stack trace if vcgencmd doesn't work / exist

This commit is contained in:
Matthias Urlichs committed 2019-02-04 11:34:05 +01:00
1 parent 4d9f0fca41
commit 54d359f730
1 file changed
+2 -2
+2 -2
View File
@@ -262,8 +262,8 @@ class PiSupportPlugin(octoprint.plugin.EnvironmentDetectionPlugin,
self._logger.debug("Retrieving throttle state via \"{}\"".format(command))
try:
state = get_vcgencmd_throttled_state(command)
except Exception:
self._logger.exception("Got an error while trying to fetch the current throttle state via \"{}\"".format(command))
except ValueError:
self._logger.warning("Fetching the current throttle state via \"{}\" doesn't work".format(command))
self._throttle_functional = False
return