diff --git a/klippy/klippy.py b/klippy/klippy.py index 097cff998c22..6ac4abebd07d 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -147,9 +147,9 @@ def _build_protocol_error_message(self, e): host_version = self.start_args['software_version'] msg_update = [] msg_updated = [] - for mcu_name, mcu in self.lookup_objects('mcu'): + for mcu_name, mcu_obj in self.lookup_objects('mcu'): try: - mcu_version = mcu.get_status()['mcu_version'] + mcu_version = mcu_obj.get_status()['mcu_version'] except: logging.exception("Unable to retrieve mcu_version from mcu") continue