mirror of https://github.com/Desuuuu/klipper.git
klippy: Fix check for duplicate objects
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
ab979a52cf
commit
1950380d6c
|
@ -84,7 +84,7 @@ class Printer:
|
|||
and self.start_args.get('debuginput') is not None):
|
||||
self.request_exit('error_exit')
|
||||
def add_object(self, name, obj):
|
||||
if obj in self.objects:
|
||||
if name in self.objects:
|
||||
raise self.config_error(
|
||||
"Printer object '%s' already created" % (name,))
|
||||
self.objects[name] = obj
|
||||
|
|
Loading…
Reference in New Issue