aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--klippy/gcode.py4
1 files changed, 3 insertions, 1 deletions
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