diff --git a/dist/tools/pyterm/pyterm b/dist/tools/pyterm/pyterm index 16c167e1a36fbdd2ae9e5f8025e99c226c7dfe90..9a49f94d0f30389ce210d603e6f5d5518a6837fe 100755 --- a/dist/tools/pyterm/pyterm +++ b/dist/tools/pyterm/pyterm @@ -601,7 +601,11 @@ class SerCmd(cmd.Cmd): if os.path.exists(self.port): self.logger.warn("Try to reconnect to %s again..." % (self.port)) - self.serial_connect() + try: + self.serial_connect() + self.logger.info("Reconnected to serial port %s" % self.port) + except serial.SerialException as se: + pass continue if c == '\r': if (self.newline == "LFCR" and nlreceived) or (self.newline == "CR"):