fix: error formating message
diff --git a/serial/tools/miniterm.py b/serial/tools/miniterm.py
index 39591e3..ebb7f6e 100644
--- a/serial/tools/miniterm.py
+++ b/serial/tools/miniterm.py
@@ -594,7 +594,7 @@
                 try:
                     self.serial.baudrate = int(sys.stdin.readline().strip())
                 except ValueError as e:
-                    sys.stderr.write('--- ERROR setting baudrate: %s ---\n'.format(e))
+                    sys.stderr.write('--- ERROR setting baudrate: {} ---\n'.format(e))
                     self.serial.baudrate = backup
                 else:
                     self.dump_port_settings()