mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-05-06 20:57:36 +02:00
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 <kevin@koconnor.net>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user