diff --git a/klippy/gcode.py b/klippy/gcode.py index e15301f9..f34b9ea2 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -251,7 +251,9 @@ class GCodeDispatch: raise gcmd.error(self.printer.get_state_message()[0]) return if not cmd: - logging.debug(gcmd.get_commandline()) + cmdline = gcmd.get_commandline() + if cmdline: + logging.debug(cmdline) return if cmd.startswith("M117 "): # Handle M117 gcode with numeric and special characters