From b3050f1058fcdc53c01547a43097244bae6fc8d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 17 Sep 2014 17:33:58 +0200 Subject: [PATCH] If command handler returns, _preprocess_command should return None not "None" --- src/octoprint/comm/protocol/reprap/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/octoprint/comm/protocol/reprap/__init__.py b/src/octoprint/comm/protocol/reprap/__init__.py index 58972e879..517b457cc 100644 --- a/src/octoprint/comm/protocol/reprap/__init__.py +++ b/src/octoprint/comm/protocol/reprap/__init__.py @@ -665,6 +665,8 @@ class RepRapProtocol(Protocol): gcode_command_handler = "_gcode_%s" % command.command if hasattr(self, gcode_command_handler) and not self.is_streaming(): command, with_checksum, with_line_number = getattr(self, gcode_command_handler)(command, with_checksum, with_line_number) + if command is None: + return None if with_checksum: if with_line_number is not None: