From c4da5d6764c4af12a33e6a3c425a852a04e4bb0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 29 Mar 2019 15:27:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=87=20Some=20changes=20in=20what=20get?= =?UTF-8?q?s=20reported=20as=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/util/comm.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index e9987e487..1513ffcaf 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -2550,12 +2550,9 @@ class MachineCom(object): self._log("Trying {}".format(p)) programmer.connect(p) serial_obj = programmer.leaveISP() - except ispBase.IspError as e: - self._log("Could not enter programming mode on {}, might not be a printer or just not allow programming mode".format(p)) - self._logger.info("Could not enter programming mode on {}: {}".format(p, e)) except: - self._log("Could not connect to {}: {}".format(p, get_exception_string())) - self._logger.exception("Could not connect to {}".format(p)) + self._log("Could not connect to or enter programming mode on {}, might not be a printer or just not allow programming mode".format(p)) + self._logger.info("Could not enter programming mode on {}: {}".format(p, e)) found = serial_obj is not None programmer.close() @@ -3371,7 +3368,7 @@ class MachineCom(object): self._log("Unexpected error while writing to serial port: %s" % (get_exception_string())) if isinstance(ex, serial.SerialException): self._dual_log("Please see https://faq.octoprint.org/serialerror for possible reasons of this.", - level=logging.ERROR) + level=logging.INFO) self._errorValue = get_exception_string() self.close(is_error=True) break @@ -3381,7 +3378,7 @@ class MachineCom(object): self._log("Unexpected error while writing to serial port: %s" % (get_exception_string())) if isinstance(ex, serial.SerialException): self._dual_log("Please see https://faq.octoprint.org/serialerror for possible reasons of this.", - level=logging.ERROR) + level=logging.INFO) self._errorValue = get_exception_string() self.close(is_error=True) break