diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-03-05 13:59:20 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-03-05 13:59:20 -0500 |
commit | 1950380d6c90e57f6fa844f886d208e5391ede7b (patch) | |
tree | d9f6b8837d5a952db92940de3c8aec59842022bd | |
parent | ab979a52cfdbc8184c9ad1747210d2a49bf719a2 (diff) | |
download | kutter-1950380d6c90e57f6fa844f886d208e5391ede7b.tar.gz kutter-1950380d6c90e57f6fa844f886d208e5391ede7b.tar.xz kutter-1950380d6c90e57f6fa844f886d208e5391ede7b.zip |
klippy: Fix check for duplicate objects
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/klippy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py index e2c580bc..327af461 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -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 |