aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorArksine <arksine.code@gmail.com>2019-10-20 20:06:02 -0400
committerKevinOConnor <kevin@koconnor.net>2019-10-22 22:09:33 -0400
commitd85b395a9cf4aae1f9d9535942c4b9f7ab86b3db (patch)
tree5439d499bbf1461d9688152716c18f68dd487784 /klippy
parentabdfd92e99a29e8638fda07000ad3f106ec767ce (diff)
downloadkutter-d85b395a9cf4aae1f9d9535942c4b9f7ab86b3db.tar.gz
kutter-d85b395a9cf4aae1f9d9535942c4b9f7ab86b3db.tar.xz
kutter-d85b395a9cf4aae1f9d9535942c4b9f7ab86b3db.zip
bed_mesh: fix error reporting
Fix invalid string formatting in the parse_pair() helper. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/bed_mesh.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/bed_mesh.py b/klippy/extras/bed_mesh.py
index 84977805..3b97e7bf 100644
--- a/klippy/extras/bed_mesh.py
+++ b/klippy/extras/bed_mesh.py
@@ -40,12 +40,12 @@ def parse_pair(config, param, check=True, cast=float,
if pair[0] < minval or pair[1] < minval:
raise config.error(
"Option '%s' in section bed_mesh must have a minimum of %s"
- % (param[0]), minval)
+ % (param[0], str(minval)))
if maxval is not None:
if pair[0] > maxval or pair[1] > maxval:
raise config.error(
"Option '%s' in section bed_mesh must have a maximum of %s"
- % (param[0]), str(minval))
+ % (param[0], str(maxval)))
return pair