From 54d359f7306393351ab5fc309dd48d640be7d6fe Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Mon, 4 Feb 2019 11:33:15 +0100 Subject: [PATCH] Don't spew a stack trace if vcgencmd doesn't work / exist --- src/octoprint/plugins/pi_support/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/plugins/pi_support/__init__.py b/src/octoprint/plugins/pi_support/__init__.py index e5aa44a8e..22f3a3ada 100644 --- a/src/octoprint/plugins/pi_support/__init__.py +++ b/src/octoprint/plugins/pi_support/__init__.py @@ -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