mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-03-09 04:24:43 -06:00
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:
parent
7a44726492
commit
f1fb57564f
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue