From f1fb57564fd89511bde3e17aa70af562b3da4f1a Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 3 Mar 2026 14:42:17 -0500 Subject: [PATCH] configfile: Fix deprecate() method Commit 1473b79a moved the deprecate mesage generation to the PrinterConfig() class, but failed to use the proper variable name for 'section'. Signed-off-by: Kevin O'Connor --- klippy/configfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/klippy/configfile.py b/klippy/configfile.py index d37404c25..6091d78c5 100644 --- a/klippy/configfile.py +++ b/klippy/configfile.py @@ -504,11 +504,11 @@ class PrinterConfig: if value is None: res = {'type': 'deprecated_option'} defmsg = ("Option '%s' in section '%s' is deprecated." - % (option, self.section)) + % (option, section)) else: res = {'type': 'deprecated_value', 'value': value} defmsg = ("Value '%s' in option '%s' in section '%s' is deprecated." - % (value, option, self.section)) + % (value, option, section)) if msg is None: msg = defmsg res['message'] = msg